diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-06-02 10:15:00 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-06-02 10:15:00 +0100 |
commit | 57d9e157696774484e007dcf53f59b83fd8206e7 (patch) | |
tree | 17288dc9a4c50f0acca2d1f9f5b3fcc41f2bccf6 /patches | |
parent | 2dbeae85ceaf086905d66ad767b7c63691f5ddfc (diff) | |
download | midipix_build-57d9e157696774484e007dcf53f59b83fd8206e7.tar.bz2 midipix_build-57d9e157696774484e007dcf53f59b83fd8206e7.tar.xz |
patches/openbsd_baseutils.local.patch: updated (via midipix.)
Diffstat (limited to 'patches')
-rw-r--r-- | patches/openbsd_baseutils.local.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/patches/openbsd_baseutils.local.patch b/patches/openbsd_baseutils.local.patch index 2e8600ce..b6138350 100644 --- a/patches/openbsd_baseutils.local.patch +++ b/patches/openbsd_baseutils.local.patch @@ -11,6 +11,28 @@ index be8d065..41ffd57 100644 if (fd == -1) { if (!in_sig) syswarn(1, errno, "Unable to restore mode and times" +diff --git a/libopenbsd/pwd.c b/libopenbsd/pwd.c +index d087150..5d29e3f 100644 +--- a/libopenbsd/pwd.c ++++ b/libopenbsd/pwd.c +@@ -20,11 +20,15 @@ gid_from_group(const char *name, gid_t *gid) + return 0; + } + ++const char group_nogroup[] = "nogroup"; ++ + const char * + group_from_gid(gid_t gid, int nogroup) + { +- +- return (getgrgid(gid)->gr_name); ++ struct group *grp; ++ return (grp =getgrgid(gid)) ++ ? grp->gr_name ++ : group_nogroup; + } + + int --- baseutils/pax/Makefile.orig 2020-05-24 11:18:45.017286972 +0100 +++ baseutils/pax/Makefile 2020-06-02 09:56:05.077777147 +0100 @@ -2,7 +2,7 @@ |