From: <tr...@us...> - 2003-02-10 08:41:27
|
Update of /cvsroot/basedb/basedb/src In directory sc8-pr-cvs1:/tmp/cvs-serv29789/src Modified Files: baseftpd.c Log Message: Work done on laptop in Gothenburg - no time for more detailed message Index: baseftpd.c =================================================================== RCS file: /cvsroot/basedb/basedb/src/baseftpd.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** baseftpd.c 1 Feb 2003 12:52:53 -0000 1.1 --- baseftpd.c 10 Feb 2003 08:40:47 -0000 1.2 *************** *** 53,57 **** char *dir = dirname(argv[0]); ! if(!chdir(dir)) { perror("Unable to chdir to program directory"); --- 53,57 ---- char *dir = dirname(argv[0]); ! if(chdir(dir)) { perror("Unable to chdir to program directory"); *************** *** 72,77 **** strncpy(yourname, inet_ntoa(youraddr.sin_addr), 16); execl(progname, progname, myname, yourname, NULL); ! fprintf(stderr, "Unable to run %s", progname); ! perror(""); } --- 72,77 ---- strncpy(yourname, inet_ntoa(youraddr.sin_addr), 16); execl(progname, progname, myname, yourname, NULL); ! fprintf(stderr, "Unable to run "); ! perror(progname); } |