Changeset 105 for branches/samba-3.0/source/lib
- Timestamp:
- Nov 26, 2007, 9:24:27 AM (18 years ago)
- Location:
- branches/samba-3.0/source/lib
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/lib/charcnv.c
r102 r105 870 870 size_t push_ascii(void *dest, const char *src, size_t dest_len, int flags) 871 871 { 872 size_t src_len = strlen(src); 873 pstring tmpbuf; 872 size_t src_len = strlen(src); 873 pstring tmpbuf; 874 size_t ret; 874 875 875 876 /* No longer allow a length of -1 */ … … 886 887 src_len++; 887 888 888 return convert_string(CH_UNIX, CH_DOS, src, src_len, dest, dest_len, True); 889 ret =convert_string(CH_UNIX, CH_DOS, src, src_len, dest, dest_len, True); 890 if (ret == (size_t)-1 && 891 (flags & (STR_TERMINATE | STR_TERMINATE_ASCII)) 892 && dest_len > 0) { 893 ((char *)dest)[0] = '\0'; 894 } 895 return ret; 896 889 897 } 890 898 -
branches/samba-3.0/source/lib/replace/replace.h
r30 r105 78 78 #include <stdlib.h> 79 79 #include <stddef.h> 80 #endif 81 82 #if !defined(HAVE_VOLATILE) 83 #define volatile 80 84 #endif 81 85 -
branches/samba-3.0/source/lib/replace/system/wait.h
r30 r105 45 45 #endif 46 46 47 #if !defined(HAVE_SIG_ATOMIC_T_TYPE) 48 typedef int sig_atomic_t; 47 49 #endif 50 51 #endif -
branches/samba-3.0/source/lib/util.c
r62 r105 1242 1242 p++; 1243 1243 fstrcpy(my_domname, p); 1244 return True; 1244 1245 } 1245 1246 -
branches/samba-3.0/source/lib/util_tdb.c
r26 r105 69 69 if (timeout) { 70 70 CatchSignal(SIGALRM, SIGNAL_CAST gotalarm_sig); 71 tdb_setalarm_sigptr(tdb, &gotalarm); 71 72 alarm(timeout); 72 73 } … … 79 80 if (timeout) { 80 81 alarm(0); 82 tdb_setalarm_sigptr(tdb, NULL); 81 83 CatchSignal(SIGALRM, SIGNAL_CAST SIG_IGN); 82 84 if (gotalarm) { -
branches/samba-3.0/source/lib/version.c
r1 r105 28 28 #else 29 29 static fstring samba_version; 30 static BOOL init_samba_version; 31 #ifdef SAMBA_VENDOR_PATCH 30 32 fstring tmp_version; 31 static BOOL init_samba_version;32 33 size_t remaining; 34 #endif 33 35 34 36 if (init_samba_version)
Note:
See TracChangeset
for help on using the changeset viewer.