aboutsummaryrefslogtreecommitdiff
path: root/pwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'pwd.c')
-rw-r--r--pwd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pwd.c b/pwd.c
index d9ab54e48..893ed1e15 100644
--- a/pwd.c
+++ b/pwd.c
@@ -4,15 +4,15 @@
4const char pwd_usage[] = "Print the current directory.\n"; 4const char pwd_usage[] = "Print the current directory.\n";
5 5
6extern int 6extern int
7pwd_main(struct FileInfo * i, int argc, char * * argv) 7pwd_main(int argc, char * * argv)
8{ 8{
9 char buf[1024]; 9 char buf[1024];
10 10
11 if ( getcwd(buf, sizeof(buf)) == NULL ) { 11 if ( getcwd(buf, sizeof(buf)) == NULL ) {
12 name_and_error("get working directory"); 12 perror("get working directory");
13 return 1; 13 exit( FALSE);
14 } 14 }
15 15
16 printf("%s\n", buf); 16 printf("%s\n", buf);
17 return 0; 17 exit( TRUE);
18} 18}