git.iko.soy/typeable/nixpkgs
on master help sign in
locate: does not use localuser for mlocate
commit6ef6484dd645a7d1d6b1d3d993988ba5833a5701 authorromildo <malaquias@gmail.com> dateSun 28 May 2017, 15:22 (10 years ago) parentc06a10e
1 file changed+1−1
nixos/modules/misc/locate.nix+1−1
nixos/modules/misc/locate.nix+1−1
@@ -133,7 +133,7 @@ in {
133133 ''
134134 mkdir -m 0755 -p ${dirOf cfg.output}
135135 exec ${cfg.locate}/bin/updatedb \
136− ${optionalString (cfg.localuser != null) ''--localuser=${cfg.localuser}''} \
136+ ${optionalString (cfg.localuser != null && ! isMLocate) ''--localuser=${cfg.localuser}''} \
137137 --output=${toString cfg.output} ${concatStringsSep " " cfg.extraFlags}
138138 '';
139139 environment = {