diff options
author | Mike Makonnen <mtm@FreeBSD.org> | 2003-06-02 05:52:24 +0000 |
---|---|---|
committer | Mike Makonnen <mtm@FreeBSD.org> | 2003-06-02 05:52:24 +0000 |
commit | fe6983de4bc39256b10e83f5d0390b52e3f3ec43 (patch) | |
tree | 6633d2ceee96bce6536d86ae33fc619ef3a5b317 /usr.sbin/chroot | |
parent | 1104779b709f758612ed36e8ae168577e71eff3f (diff) | |
download | src-fe6983de4bc39256b10e83f5d0390b52e3f3ec43.tar.gz src-fe6983de4bc39256b10e83f5d0390b52e3f3ec43.zip |
Notes
Diffstat (limited to 'usr.sbin/chroot')
-rw-r--r-- | usr.sbin/chroot/chroot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/chroot/chroot.c b/usr.sbin/chroot/chroot.c index 721ef51f9d52..3aeff1eddf43 100644 --- a/usr.sbin/chroot/chroot.c +++ b/usr.sbin/chroot/chroot.c @@ -76,7 +76,7 @@ main(argc, argv) if (argc < 1) usage(); - if (chdir(argv[0]) || chroot(".")) + if (chdir(argv[0]) == -1 || chroot(".") == -1) err(1, "%s", argv[0]); if (argv[1]) { |