diff options
author | taca <taca> | 2003-03-31 16:33:22 +0000 |
---|---|---|
committer | taca <taca> | 2003-03-31 16:33:22 +0000 |
commit | f5ccc18a2483a678e93f016f276e091eb710462d (patch) | |
tree | 709dd9b4f9a44a92fe605b26a8c3440c09faa6a2 /net/ja-samba/patches | |
parent | 728c20a3d7f837707185f4b5587f2b34391ed217 (diff) | |
download | pkgsrc-f5ccc18a2483a678e93f016f276e091eb710462d.tar.gz |
Make it really works. Fix careless mistake in patching lib/system.c.
Diffstat (limited to 'net/ja-samba/patches')
-rw-r--r-- | net/ja-samba/patches/patch-ap | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/net/ja-samba/patches/patch-ap b/net/ja-samba/patches/patch-ap index 26d037e8f9c..68fa575ce25 100644 --- a/net/ja-samba/patches/patch-ap +++ b/net/ja-samba/patches/patch-ap @@ -1,4 +1,4 @@ -$NetBSD: patch-ap,v 1.1 2003/03/29 08:18:50 taca Exp $ +$NetBSD: patch-ap,v 1.2 2003/03/31 16:33:22 taca Exp $ Expand & in the gecos field to a capitalized login name. @@ -16,12 +16,12 @@ Expand & in the gecos field to a capitalized login name. memcpy((char *)&dst->pass, pass, sizeof(struct passwd)); unix_to_dos(dst->pw_name, pass->pw_name); -@@ -784,7 +789,37 @@ static void copy_pwent(struct saved_pw * - fstrcpy(dst->pw_passwd, pass->pw_passwd); +@@ -785,6 +790,35 @@ static void copy_pwent(struct saved_pw * dst->pass.pw_passwd = dst->pw_passwd; + unix_to_dos(dst->pw_gecos, pass->pw_gecos); +#ifdef BSD -+ unix_to_dos(gecos, pass->pw_gecos); ++ gecos = dst->pw_gecos; + if (*gecos == '*') + gecos++; + bp = buf; @@ -48,8 +48,6 @@ Expand & in the gecos field to a capitalized login name. + + gecos_done: + fstrcpy(dst->pw_gecos, gecos); -+#else - unix_to_dos(dst->pw_gecos, pass->pw_gecos); +#endif dst->pass.pw_gecos = dst->pw_gecos; |