CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2018/04/13 08:11:37
Modified files:
usr.bin/mg : fileio.c
Log message:
mg tries to write backups to the wrong directory when run under a
different effective user, i.e. when invoced via su and
backup-to-home-directory is enabled.
Problem pointed out and diff provied by Lucas Gabriel Vuotto
<lvuotto92 () gmail ! com>, thanks!
Subsequently slacked on for nearly a year by yours truly.
Then remembered when Han Boetes <hboetes () gmail ! com> came up with
a similar diff because of a problem report by Mark Willson where it
turned out that getlogin(2) is not very portable.
OK tb