r12467: r12029@cabra: derrell | 2005-12-24 20:25:59 -0500
authorDerrell Lipman <derrell@samba.org>
Sun, 25 Dec 2005 02:00:35 +0000 (02:00 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:05:56 +0000 (11:05 -0500)
 add another libsmbclient test program
(This used to be commit 133cd3952b7f5fc9e9ca8d82a33ed1272067a6c8)

examples/libsmbclient/Makefile
examples/libsmbclient/teststat.c

index c324a578d14c81391b7db5f6e5f20c2599b310d8..a88f4a240cd0a44f1b697a18dc926d9255fd63ca 100644 (file)
@@ -17,6 +17,7 @@ TESTS=        testsmbc \
        testbrowse \
        testbrowse2 \
        teststat \
+       teststat2 \
        testchmod \
        testutime \
        testread
@@ -47,6 +48,10 @@ teststat: teststat.o
        @echo Linking teststat
        @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ /usr/local/samba/lib/libsmbclient.so -lpopt $<
 
+teststat2: teststat2.o
+       @echo Linking teststat2
+       @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ /usr/local/samba/lib/libsmbclient.so -lpopt $<
+
 testchmod: testchmod.o
        @echo Linking testchmod
        @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ /usr/local/samba/lib/libsmbclient.so -lpopt $<
index 29517efb6f635329640a760a9fc03773b1da0b38..86c69e4e2cd82e046c88fcde49d8b80f97569e85 100644 (file)
@@ -48,7 +48,7 @@ int main(int argc, char * argv[])
         return 1;
     }
     
-    printf("SAMBA\n mtime:%lu/%s ctime:%lu/%s atime:%lu/%s\n",
+    printf("\nSAMBA\n mtime:%lu/%s ctime:%lu/%s atime:%lu/%s\n",
            st.st_mtime, ctime_r(&st.st_mtime, mtime),
            st.st_ctime, ctime_r(&st.st_ctime, ctime),
            st.st_atime, ctime_r(&st.st_atime, atime));