summaryrefslogtreecommitdiff
path: root/usr.bin/mg/fileio.c
AgeCommit message (Collapse)Author
2001-07-09correct type on last arg to execl(); nordin@cse.ogi.eduTheo de Raadt
2001-07-06Change the filename completion code to:Artur Grabowski
- not use an unprotected strcat. - Append a '/' when a file is a symlink to a directory. (tab completion on '/sys' is now less annoying.) - actually make some more sense.
2001-05-24Don't assume that map_table[0] is the fundamental map.Artur Grabowski
2001-05-24spacesMichael Shalayeff
2001-05-24use strlcpy vs cpy+len, some other fixesMichael Shalayeff
2001-05-23Get rid of unnecessary casts of NULL.Artur Grabowski
2001-05-23remove VOID. We're way beyond the point where this could build with anArtur Grabowski
ancient compiler.
2001-05-03 * Let make_file_list always append a '/' at the end of directories.Artur Grabowski
This makes filename TAB-completion more useful, now you don't need to write that '/' manually. * random cleanups including using snprintf and memcmp where open-coded equivalents were used, waitpid instead of 'while (wait() != pid);', etc.
2001-05-01Use opendir/readdir instead of open/read when making a file list.Artur Grabowski
This makes filename tab-completion work and takes dired a step further.
2001-01-29$OpenBSD$Niklas Hallqvist
2001-01-24Don't use rename to backup the file to a ~ file. We need to make aTodd C. Miller
copy instead so the original is edited in place for things like cron and vipw.
2000-08-02$HOME paranoia: never use getenv("HOME") w/o checking for NULL and non-zeroTodd C. Miller
2000-04-13The start of KNF + -Wall. The code has been run through indent butTodd C. Miller
needs hand fixup. I stopped at keymap.c...
2000-02-27Remove a now-bogus commentTodd C. Miller
Use pid_t Use vfork(), not fork() when sensible
2000-02-27We don't have silly SYSV 14-character file name limits. Taken fromTodd C. Miller
the BSD fileio.c. Note that this module is rife with PATH_MAX overflow possibilities.
2000-02-26Use uid_t, gid_t and mode_t where applicable.Todd C. Miller
Pull in changes from the BSD-specific sysdef.h and fileio.c: kill bogus unlinkdir() and rename() kludges since we have rmdir(2) and rename(2) define SYMBLINK since we have symlinks TODO: merge BSD spawn.c and ttyio.c
2000-02-25further pruningTheo de Raadt
2000-02-25make it minimally compile; millertTheo de Raadt
2000-02-25initial import of mg2aTheo de Raadt