mirror of
https://github.com/samba-team/samba.git
synced 2025-01-07 17:18:11 +03:00
83fc92c82c
incremented too far in some circumstances. In these cases, only the first
of multiple concatenated strings would be seen.
- Working on bug 4649 pertaining to delete an ACL, this fixes the reported
crash. It appears to have been an incomplete switchover from malloc to
talloc, as the memory was still being freed with SAFE_FREE.
Deleting ACLs still doesn't work. Although a valid request is sent to the
server and a SUCCESS response is returned, the method that's used in
libsmbclient for deleting ACLs seems to be incorrect. In looking at the
samba4 torture tests, it appears that we should be turning on the INHERIT
flag if we want to delete the ACL. (I could use some assistance on the
proper flags to send, from anyone familiar with this stuff.)
- Apply patch from SATOH Fumiyasu to fix bug 4750. smbc_telldir_ctx() was not
returning a value useful to smbc_lseekdir_ctx().
Derrell
(This used to be commit 2ac502e29b
)
83 lines
1.9 KiB
Makefile
83 lines
1.9 KiB
Makefile
#
|
|
CC = gcc
|
|
|
|
SAMBA_INCL = ../../source/include
|
|
EXTLIB_INCL = -I/usr/include/gtk-1.2 \
|
|
-I/usr/include/glib-1.2 \
|
|
-I/usr/lib/glib/include
|
|
|
|
|
|
DEFS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
|
|
CFLAGS = -O0 -g -I$(SAMBA_INCL) $(EXTLIB_INCL) $(DEFS)
|
|
|
|
LDFLAGS = -L/usr/local/samba/lib \
|
|
-lldap -lkrb5 -lgssapi_krb5
|
|
#LIBSMBCLIENT = /usr/local/samba/lib/libsmbclient.so
|
|
LIBSMBCLIENT = ../../source/bin/libsmbclient.a -ldl -lresolv
|
|
|
|
TESTS= testsmbc \
|
|
testacl \
|
|
testacl2 \
|
|
testbrowse \
|
|
testbrowse2 \
|
|
teststat \
|
|
teststat2 \
|
|
testchmod \
|
|
testutime \
|
|
testread
|
|
|
|
# tree \
|
|
|
|
all: $(TESTS) smbsh
|
|
|
|
testsmbc: testsmbc.o
|
|
@echo Linking testsmbc
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT)
|
|
|
|
tree: tree.o
|
|
@echo Linking tree
|
|
$(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ $< `gtk-config --libs` $(LIBSMBCLIENT)
|
|
|
|
testacl: testacl.o
|
|
@echo Linking testacl
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
|
|
|
|
testacl2: testacl2.o
|
|
@echo Linking testacl2
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
|
|
|
|
testbrowse: testbrowse.o
|
|
@echo Linking testbrowse
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
|
|
|
|
testbrowse2: testbrowse2.o
|
|
@echo Linking testbrowse2
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
|
|
|
|
teststat: teststat.o
|
|
@echo Linking teststat
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
|
|
|
|
teststat2: teststat2.o
|
|
@echo Linking teststat2
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
|
|
|
|
testchmod: testchmod.o
|
|
@echo Linking testchmod
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
|
|
|
|
testutime: testutime.o
|
|
@echo Linking testutime
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
|
|
|
|
testread: testread.o
|
|
@echo Linking testread
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
|
|
|
|
smbsh:
|
|
make -C smbwrapper
|
|
|
|
clean:
|
|
@rm -f *.o *~ $(TESTS)
|
|
@make -C smbwrapper clean
|