summaryrefslogtreecommitdiff
path: root/sysutils/user/patches
diff options
context:
space:
mode:
authoragc <agc>2000-01-03 22:08:56 +0000
committeragc <agc>2000-01-03 22:08:56 +0000
commite7cfdd503774c5f05ff6d4a40a845600661aa8e2 (patch)
tree37e1cb7d5032a402daf8d4b2f95303693acacaf1 /sysutils/user/patches
parentbef66a94068d4ac5d7e9d4d3c16458b48dab0a91 (diff)
downloadpkgsrc-e7cfdd503774c5f05ff6d4a40a845600661aa8e2.tar.gz
Update this package to mirror the 1999/12/31 sources.
Enhancements from Hubert Feyrer: + copy all files and directories in <skeldir> to new user's home directory, not just if they begin with a '.' + use pax to copy files from <skeldir>, as this will allow <skeldir> to contain directory trees as well as regular files + use -h arg to chown(1) in case any symlinks have been created in the new user's home directory + getpwnam(3) does not set errno, so use errx(3) and warnx(3) + use nologin(8) in preference to false(1) when deleting users but preserving information + in usage messages, specify [-r lowuid..highuid] rather than a simple [-r range] Add new functionality, and fix some bugs and oversights: + Moved all internal definitions from usermgmt.h to user.c + Added prototypes to usermgmt.h + Allow defaults to be set at build time + Check the effective uid is 0 if any data is to be modified + Check all numeric uids and gids really are numeric + Fix a bug (reported by lenb at sasquatch.com) where new ranges were appended to old ranges, rather than replacing them + Add userinfo(8) and groupinfo(8) utilities (if EXTENSIONS is defined), whereby user and group information can be displayed. Add manual pages for new utilities. Add front-end calling from user(8) and group(8) accordingly. + Make all functions visible outside the user.c file again. User and group manipulation may be split out into a separate shared lib in the future + Split off main function into a separate main.c + Changed default group to be "users" + Changed despatch table for commands to work in a more sane manner + Added "default-group" target to Makefile, so that the default group can be made easily.
Diffstat (limited to 'sysutils/user/patches')
-rw-r--r--sysutils/user/patches/patch-aa55
1 files changed, 0 insertions, 55 deletions
diff --git a/sysutils/user/patches/patch-aa b/sysutils/user/patches/patch-aa
deleted file mode 100644
index 1fd09c98717..00000000000
--- a/sysutils/user/patches/patch-aa
+++ /dev/null
@@ -1,55 +0,0 @@
-$NetBSD: patch-aa,v 1.1.1.1 1999/12/16 16:28:31 agc Exp $
-
-Bring in strlcpy(3) from -current for those versions of NetBSD which
-don't have it.
-
---- user.c Thu Dec 16 15:46:16 1999
-+++ user.c Thu Dec 16 16:17:17 1999
-@@ -92,6 +92,47 @@
- return ret;
- }
-
-+#if __NetBSD_Version__ < 104110000
-+#undef _DIAGASSERT
-+#define _DIAGASSERT(x)
-+/*
-+ * Copy src to string dst of size siz. At most siz-1 characters
-+ * will be copied. Always NUL terminates (unless siz == 0).
-+ * Returns strlen(src); if retval >= siz, truncation occurred.
-+ */
-+size_t
-+strlcpy(dst, src, siz)
-+ char *dst;
-+ const char *src;
-+ size_t siz;
-+{
-+ register char *d = dst;
-+ register const char *s = src;
-+ register size_t n = siz;
-+
-+ _DIAGASSERT(dst != NULL);
-+ _DIAGASSERT(src != NULL);
-+
-+ /* Copy as many bytes as will fit */
-+ if (n != 0 && --n != 0) {
-+ do {
-+ if ((*d++ = *s++) == 0)
-+ break;
-+ } while (--n != 0);
-+ }
-+
-+ /* Not enough room in dst, add NUL and traverse rest of src */
-+ if (n == 0) {
-+ if (siz != 0)
-+ *d = '\0'; /* NUL-terminate dst */
-+ while (*s++)
-+ ;
-+ }
-+
-+ return(s - src - 1); /* count does not include NUL */
-+}
-+#endif
-+
- /* copy any dot files into the user's home directory */
- static int
- copydotfiles(char *skeldir, int uid, int gid, char *dir)