]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fileutils: xmkstemp() interface change
authorDave Reisner <dreisner@archlinux.org>
Sat, 2 Jun 2012 17:31:30 +0000 (19:31 +0200)
committerSami Kerola <kerolasa@iki.fi>
Sat, 2 Jun 2012 18:29:12 +0000 (20:29 +0200)
commit3c4fed097ddb65dbe3d88f60caee78fb60756f3e
treea7cd7247ca4fbda414846a93754e1e388fece136
parent79f8481889536822c4bd08f405ddfdc44d0d3cda
fileutils: xmkstemp() interface change

We can not let the user control where TMPDIR is for this tempfile.
This will be where we write the updated passwd file, and must be
capable of being moved atomically with rename(2).  Therefore, it
cannot be on a different device, or setpwnam() and vipw/vigr programs
will invariably fail with EXDEV.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
include/fileutils.h
lib/fileutils.c
login-utils/setpwnam.c
login-utils/vipw.c
term-utils/wall.c