summaryrefslogtreecommitdiff
path: root/misc-utils/namei.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2006-12-07 00:25:35 +0100
committerKarel Zak <kzak@redhat.com>2006-12-07 00:25:35 +0100
commit2b6fc908bc368b540845a313c3b8a867c5ad9a42 (patch)
tree6fad48a239bc90515a5dc4084d6e3c3ee1f41e29 /misc-utils/namei.c
parentfd6b7a7ffc50400704beb41d5a23af5f9edb1eed (diff)
downloadutil-linux-old-2b6fc908bc368b540845a313c3b8a867c5ad9a42.tar.gz
Imported from util-linux-2.8 tarball.
Diffstat (limited to 'misc-utils/namei.c')
-rw-r--r--misc-utils/namei.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/misc-utils/namei.c b/misc-utils/namei.c
index 2c985002..36a17dfd 100644
--- a/misc-utils/namei.c
+++ b/misc-utils/namei.c
@@ -41,10 +41,6 @@ chdir to /, or if it encounters an unknown file type.
-------------------------------------------------------------*/
-#ifndef lint
-static char *RCSid = "$Id: namei.c,v 1.6 1997/07/06 00:13:09 aebr Exp $";
-#endif
-
#include <stdio.h>
#include <unistd.h>
#include <string.h>
@@ -75,7 +71,6 @@ int argc;
char *argv[];
{
void namei(), usage();
- char *getwd();
int getopt();
extern int optind;
register int c;
@@ -100,7 +95,7 @@ char *argv[];
}
}
- if(getwd(curdir) == NULL){
+ if(getcwd(curdir, sizeof(curdir)) == NULL){
(void)fprintf(stderr, "namei: unable to get current directory - %s\n", curdir);
exit(1);
}