diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-19 20:04:42 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-19 20:04:42 +0000 |
commit | 5e93200bbc39c9cf0eaf17d907478f2c24fbe8a3 (patch) | |
tree | f3442f62b69302c067ad785676017ca157d3ed36 /tests/seq | |
parent | 7c308093f3e3564f86816e8bdbdfc6458cdd5166 (diff) | |
download | coreutils-5e93200bbc39c9cf0eaf17d907478f2c24fbe8a3.tar.xz |
Don't use <alloca.h>, so that we don't use alloca on
strings on unbounded length. alloca's performance benefits aren't
that important here.
(V_STRDUP): Remove.
(parse_with_separator): New function, with most of the internals
of the old parse_user_spec. Allow user to omit both user and group,
for compatibility with FreeBSD.
Clone only the user name, not the entire spec.
Do not set *uid, *gid unless entirely successful.
Avoid memory leak in some failing cases.
Fix regression for USER.GROUP reported by Dmitry V. Levin in
<http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
(parse_user_spec): Rewrite to use parse_with_separator.
Diffstat (limited to 'tests/seq')
0 files changed, 0 insertions, 0 deletions