summaryrefslogtreecommitdiff
path: root/usr.bin/mg/fileio.c
AgeCommit message (Expand)Author
2005-06-14Add explicit public domain notices to all public domain files.Kjell Wooding
2005-04-03This is a no binary change which does:David Berghoff
2005-03-10spacingTheo de Raadt
2005-03-10the realpath() was needed to do do relative to absolute pathHenning Brauer
2005-03-09fix mg's behaviour with regards to files on which we do not haveJean-Francois Brousseau
2005-02-01make fbackupfile() return FALSE when the rename(2) from theHenning Brauer
2005-01-31Safer backup file generation using mkstemp(); henning@ OKTodd C. Miller
2005-01-11no need to call realpath() in adjustname()Henning Brauer
2004-07-09when saving a file, check whether it is newline terminated and if it is not,Vincent Labrecque
2004-07-08simplify the file writing loopVincent Labrecque
2003-11-14read(2) returns ssize_t, not size_t. spotted by Andrey Matveev.Vincent Labrecque
2003-11-08typos from Jonathon Gray;Jason McIntyre
2003-08-15make dired work more like emacs. (well, make it _work_, and then add aVincent Labrecque
2003-08-15 actually extract the filename off the ls line. makes dired *slightly*Vincent Labrecque
2003-05-08use NULL to indicate failure in functions that return pointers, not FALSE.Vincent Labrecque
2003-05-06fix a small memleak on errors. noticed by pat latifi.Vincent Labrecque
2002-08-22knfTheo de Raadt
2002-07-25 replace the ugly and buggy adjustname function by a simple one usingVincent Labrecque
2002-07-01KNFVincent Labrecque
2002-06-21fix bad usage of strlcpy()'s return value. (made pointers pointVincent Labrecque
2002-04-22 don't use /bin/cp to copy files.Vincent Labrecque
2002-04-22 fix mem leakVincent Labrecque
2002-04-15use fchmod and fchown instead; vincentTheo de Raadt
2002-03-27Fixes the the following problems (from zyrnix)Todd C. Miller
2002-03-16 Make these special buffers readonly by default. ok art@Vincent Labrecque
2002-03-11 * Move to ANSI function definitions.Vincent Labrecque
2002-02-22if file mode known, try to avoid a race.. i think. millert spotted a bug in ...Theo de Raadt
2002-02-14d_makename now takes a length parameter so we can remove theVincent Labrecque
2002-02-14some KNFTheo de Raadt
2002-02-13 * Replace unsafe strcpy and strcat calls to safe strlcpy and strlcat.Vincent Labrecque
2001-09-21correct fork logic and rewrite for clarity, ok todd@Peter Stromberg
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
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
2001-05-03 * Let make_file_list always append a '/' at the end of directories.Artur Grabowski
2001-05-01Use opendir/readdir instead of open/read when making a file list.Artur Grabowski
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
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
2000-02-27Remove a now-bogus commentTodd C. Miller
2000-02-27We don't have silly SYSV 14-character file name limits. Taken fromTodd C. Miller
2000-02-26Use uid_t, gid_t and mode_t where applicable.Todd C. Miller
2000-02-25further pruningTheo de Raadt
2000-02-25make it minimally compile; millertTheo de Raadt
2000-02-25initial import of mg2aTheo de Raadt