]> git.ipfire.org Git - thirdparty/util-linux.git/commit
vipw: move copyfile to the lib
authorEgor Chelak <egor.chelak@gmail.com>
Fri, 6 Nov 2020 07:45:18 +0000 (09:45 +0200)
committerEgor Chelak <egor.chelak@gmail.com>
Mon, 9 Nov 2020 05:18:42 +0000 (07:18 +0200)
commitb9dcd38462d04a7ec2840f2c05eba840b226bc71
tree84fddc3956018b4bce7de7b627efdedd5bc842d0
parent12235ef107ed94d06758b6fc718e18fe421e2b17
vipw: move copyfile to the lib

Also, a bug in pw_tmpfile was fixed: copyfile used tmp_file to report
errors, but pw_tmpfile only assigned that variable _after_ calling
copyfile.

Suggested-by: Sami Kerola <kerolasa@iki.fi>
Reviewed-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Egor Chelak <egor.chelak@gmail.com>
include/fileutils.h
lib/fileutils.c
login-utils/vipw.c