]> git.pld-linux.org Git - packages/samba.git/commitdiff
- patches from Rh.
authorkloczek <kloczek@pld-linux.org>
Sat, 4 Nov 2000 13:11:43 +0000 (13:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    samba-autoconf.patch -> 1.1
    samba-smbadduser.patch -> 1.1

samba-autoconf.patch [new file with mode: 0644]
samba-smbadduser.patch [new file with mode: 0644]

diff --git a/samba-autoconf.patch b/samba-autoconf.patch
new file mode 100644 (file)
index 0000000..a58fb3b
--- /dev/null
@@ -0,0 +1,38 @@
+--- samba-2.0.6/source/configure.in.nsl        Wed Nov 10 21:35:56 1999
++++ samba-2.0.6/source/configure.in    Thu Mar 16 15:57:05 2000
+@@ -14,6 +14,7 @@
+ AC_SUBST(WRAP32)
+ AC_SUBST(PICFLAG)
+ AC_SUBST(SHLIBEXT)
++AC_SUBST(CLIENT_LIBS)
+ # compile with optimisation and without debugging by default
+ CFLAGS=${CFLAGS-"-O"}
+@@ -298,7 +299,7 @@
+ # test for where we get readline() from
+ if test "$ac_cv_header_readline_h" = "yes" ||
+    test "$ac_cv_header_readline_readline_h" = "yes"; then
+-  AC_CHECK_LIB(readline,readline)
++  AC_CHECK_LIB(readline, readline, [CLIENT_LIBS="$CLIENT_LIBS -lreadline"])
+ fi
+--- samba-2.0.6/source/Makefile.in.nsl Thu Mar 16 17:24:31 2000
++++ samba-2.0.6/source/Makefile.in     Thu Mar 16 15:11:02 2000
+@@ -8,6 +8,7 @@
+ mandir=@mandir@
+ LIBS=@LIBS@
++CLIENT_LIBS=@CLIENT_LIBS@
+ CC=@CC@
+ CFLAGS=@CFLAGS@
+ CPPFLAGS=@CPPFLAGS@
+@@ -370,7 +371,7 @@
+ bin/smbclient: $(CLIENT_OBJ) bin/.dummy
+       @echo Linking $@
+-      @$(CC) $(FLAGS) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(LIBS)
++      @$(CC) $(FLAGS) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(LIBS) $(CLIENT_LIBS)
+ bin/smbspool: $(CUPS_OBJ) bin/.dummy
+       @echo Linking $@
diff --git a/samba-smbadduser.patch b/samba-smbadduser.patch
new file mode 100644 (file)
index 0000000..0d6f8d5
--- /dev/null
@@ -0,0 +1,69 @@
+diff -urN samba-2.0.7/packaging/RedHat/smbadduser samba-2.0.7.new/packaging/RedHat/smbadduser
+--- samba-2.0.7/packaging/RedHat/smbadduser    Fri Aug 21 16:20:38 1998
++++ samba-2.0.7.new/packaging/RedHat/smbadduser        Tue Aug  8 10:23:42 2000
+@@ -2,11 +2,17 @@
+ #
+ # smbadduser - Written by Mike Zakharoff
+ #
++# * Sun Aug 6 2000 Philipp Knirsch <pknirsch@redhat.com>
++# - Bugfix to change file location from /etc to /etc/samba and to use
++#   smbpasswd -a to add the user entry to the smbpasswd file in case it didn't
++#   exist before.
++#
++
+ unalias *
+ set path = ($path)
+-set smbpasswd = /etc/smbpasswd
+-set user_map  = /etc/smbusers
++set smbpasswd = /etc/samba/smbpasswd
++set user_map  = /etc/samba/smbusers
+ #
+ # Set to site specific passwd command
+ #
+@@ -46,19 +52,23 @@
+               echo "ERROR: $unix Not in passwd database SKIPPING..."
+               continue
+       endif
+-        set tmp = `cat $smbpasswd | awk -F: '$1==USR {print $1}' USR=$unix`
+-      if ($#tmp != 0) then
+-              echo "ERROR: $unix is already in $smbpasswd SKIPPING..."
+-              continue
+-      endif
+-      echo "Adding: $unix to $smbpasswd"
+-      eval $passwd | \
+-      awk -F: '$1==USR { \
+-      printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:%s:%s:%s\n", $1, $3, $5, $6, $7) }' USR=$unix >> $smbpasswd
++      # Fix 8/7/2000 Phil Knirsch: Removed the smbpasswd stuff here and fixed
++      # the way the usermap gets updated as that one was really wrong: If a
++      # user was added twice the usermap would contain 2 entries! We now
++      # first select the existing entry, remove it from the usermap and add
++      # a new one with the new ntid. If something goes wrong the new entry
++      # will as before simply be added to the file (for manual fixing later).
++        set usr = `eval cat $user_map | awk -F= '{if(match($1, USR" *") != 0) print $2}' USR=$unix`
++
+       if ($unix != $ntid) then
+-              echo "Adding: {$unix = $ntid} to $user_map"
+-              echo "$unix = $ntid" >> $user_map
++              echo "Adding: {$unix = $usr $ntid} to $user_map"
++                cat $user_map | sed /"$unix.*"/d > $user_map.new
++                if (-e $user_map.new) then
++                    cp $user_map.new $user_map
++                endif
++                rm $user_map.new
++              echo "$unix = $usr $ntid" >> $user_map
+       endif
+       set new = ($new $unix)
+ end
+@@ -69,5 +79,9 @@
+ foreach one ($new)
+       echo $line
+       echo "ENTER password for $one"
+-      smbpasswd $one
++
++        # Fix Phil Knirsch 8/6/2000: Use the -a option to create the user
++        # entry in case it didn't exist before. This way we get rid of the
++        # file format dependent awk replacement in the previous version.
++      smbpasswd -a $one
+ end
This page took 0.046953 seconds and 4 git commands to generate.