diff options
author | H. Peter Anvin <hpa@zytor.com> | 2004-10-16 23:24:41 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2004-10-16 23:24:41 +0000 |
commit | e5509e2c8525f177f012b8be8f1262e73bc5981e (patch) | |
tree | 42bf811012b9e9167003ec7d5a8db2fa744248fa | |
parent | cfe657d2e9ec2e718f0769265765495ddd76d0d1 (diff) | |
download | klibc-e5509e2c8525f177f012b8be8f1262e73bc5981e.tar.gz |
Fix handling of the real rootklibc-0.186
-rw-r--r-- | utils/run-init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/run-init.c b/utils/run-init.c index c1d34f1740b01..6f72ccddad49f 100644 --- a/utils/run-init.c +++ b/utils/run-init.c @@ -1,4 +1,4 @@ -#ident "$Id: run-init.c,v 1.6 2004/07/30 16:26:59 hpa Exp $" +#ident "$Id: run-init.c,v 1.7 2004/10/17 20:30:50 hpa Exp $" /* ----------------------------------------------------------------------- * * * Copyright 2004 H. Peter Anvin - All Rights Reserved @@ -188,7 +188,7 @@ int main(int argc, char *argv[]) initargs = argv+optind+1; /* First, change to the new root directory */ - if ( chdir(argv[1]) ) + if ( chdir(realroot) ) die("chdir to new root"); /* This is a potentially highly destructive program. Take some |