$Log$
+Revision 1.339 1999/07/30 22:20:19 ajc
+* Applied bugfix patches contributed by Vaggelis Tsirkas:
+ * rooms.c: buffer overrun fix
+ * room_ops.c: cmd_rdir() now behaves better when directory doesn't exist
+
Revision 1.338 1999/07/30 03:32:24 ajc
* Added strdoop(), a leak-checked version of strdup()
* Small fixes to new API functions in msgbase.c
Fri Jul 10 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Initial CVS import
-
cprintf("%d %s|%s/files/%s\n",
LISTING_FOLLOWS, config.c_fqdn, BBSDIR, CC->quickroom.QRdirname);
- sprintf(buf, "cd %s/files/%s; ls >%s 2>/dev/null",
- BBSDIR, CC->quickroom.QRdirname, CC->temp);
- system(buf);
+ sprintf(buf, "ls %s/files/%s >%s 2> /dev/null",
+ BBSDIR, CC->quickroom.QRdirname, CC->temp);
+ system(buf);
sprintf(buf, "%s/files/%s/filedir", BBSDIR, CC->quickroom.QRdirname);
fd = fopen(buf, "r");