diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-05-25 08:17:45 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-05-25 08:17:45 +0000 |
commit | 562781456c3ad0bc23150211dd9f2f2b4e9936c8 (patch) | |
tree | 08f93e1f1c1a37bee2c7deb0377878470e89841f /net/samba | |
parent | 3cae33902c8016f5e0b48b9b93cdb9da44c2beac (diff) |
Notes
Diffstat (limited to 'net/samba')
-rw-r--r-- | net/samba/Makefile | 1 | ||||
-rw-r--r-- | net/samba/files/patch-source::rpcclient::cmd_reg.c | 24 |
2 files changed, 25 insertions, 0 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile index edda0188aba1..c7618e2e1db4 100644 --- a/net/samba/Makefile +++ b/net/samba/Makefile @@ -7,6 +7,7 @@ PORTNAME= samba PORTVERSION= 2.2.9 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SAMBA} MASTER_SITE_SUBDIR= . old-versions diff --git a/net/samba/files/patch-source::rpcclient::cmd_reg.c b/net/samba/files/patch-source::rpcclient::cmd_reg.c new file mode 100644 index 000000000000..0af2a8c3ddf7 --- /dev/null +++ b/net/samba/files/patch-source::rpcclient::cmd_reg.c @@ -0,0 +1,24 @@ +--- source/rpcclient/cmd_reg.c.orig Thu Nov 27 12:17:08 2003 ++++ source/rpcclient/cmd_reg.c Thu Nov 27 12:19:24 2003 +@@ -900,6 +900,9 @@ + { + extern char *optarg; + extern int optind; ++#if defined(__FreeBSD__) ++ extern int optreset; ++#endif + NTSTATUS result = NT_STATUS_UNSUCCESSFUL; + fstring msg; + uint32 timeout = 20; +@@ -907,7 +910,11 @@ + int opt; + + *msg = 0; ++#if defined(__FreeBSD__) ++ optreset = optind = 1; ++#else + optind = 0; /* TODO: test if this hack works on other systems too --simo */ ++#endif + + while ((opt = getopt(argc, argv, "m:t:rf")) != EOF) + { |