summaryrefslogtreecommitdiffstats
path: root/misc-utils/namei.c
diff options
context:
space:
mode:
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 2c9850028..36a17dfd6 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);
}