freebsd.mount: init
This commit is contained in:
parent
c171489cc5
commit
b51604ab2a
@ -0,0 +1,18 @@
|
||||
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
|
||||
index 2fcc94e40818..7de6da1bb20e 100644
|
||||
--- a/sbin/mount/mount.c
|
||||
+++ b/sbin/mount/mount.c
|
||||
@@ -155,12 +155,9 @@ exec_mountprog(const char *name, const char *execname, char *const argv[])
|
||||
EXIT(1);
|
||||
case 0: /* Child. */
|
||||
/* Go find an executable. */
|
||||
- execvP(execname, _PATH_SYSPATH, argv);
|
||||
+ execvp(execname, argv);
|
||||
if (errno == ENOENT) {
|
||||
xo_warn("exec %s not found", execname);
|
||||
- if (execname[0] != '/') {
|
||||
- xo_warnx("in path: %s", _PATH_SYSPATH);
|
||||
- }
|
||||
}
|
||||
EXIT(1);
|
||||
default: /* Parent. */
|
13
pkgs/os-specific/bsd/freebsd/pkgs/mount.nix
Normal file
13
pkgs/os-specific/bsd/freebsd/pkgs/mount.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
mkDerivation,
|
||||
libutil,
|
||||
libxo,
|
||||
...
|
||||
}:
|
||||
mkDerivation {
|
||||
path = "sbin/mount";
|
||||
buildInputs = [
|
||||
libutil
|
||||
libxo
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user