aboutsummaryrefslogtreecommitdiff
path: root/pwd.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-10-12 15:42:48 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-10-12 15:42:48 +0000
commit41c2646fd13728f4fa105fea568d451ab26b4012 (patch)
tree34245558cd448f01969679fc420de4dfd246dc13 /pwd.c
parent1e20903d90990dd5b48040a6ad69501e64414bfc (diff)
downloadbusybox-w32-41c2646fd13728f4fa105fea568d451ab26b4012.tar.gz
busybox-w32-41c2646fd13728f4fa105fea568d451ab26b4012.tar.bz2
busybox-w32-41c2646fd13728f4fa105fea568d451ab26b4012.zip
Latest and greatest.
-Erik git-svn-id: svn://busybox.net/trunk/busybox@18 69ca8d6d-28ef-0310-b511-8ec308f3f277
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}