The Samba-Bugzilla – Attachment 8891 Details for
Bug 9889
Fix potential overflow problems when formatting some types
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix issues
long-long.patch (text/plain), 5.00 KB, created by
Vadim Zhukov
on 2013-05-16 12:53:27 UTC
(
hide
)
Description:
Patch to fix issues
Filename:
MIME Type:
Creator:
Vadim Zhukov
Created:
2013-05-16 12:53:27 UTC
Size:
5.00 KB
patch
obsolete
>$OpenBSD$ >Use safe and generic approach for time_t and friends. >--- examples/libsmbclient/teststat2.c.orig Mon Apr 8 20:44:21 2013 >+++ examples/libsmbclient/teststat2.c Mon Apr 8 20:44:59 2013 >@@ -47,10 +47,10 @@ static int gettime(const char * pUrl, > return 1; > } > >- printf("SAMBA\n mtime:%lu/%s ctime:%lu/%s atime:%lu/%s\n", >- st.st_mtime, ctime_r(&st.st_mtime, m_time), >- st.st_ctime, ctime_r(&st.st_ctime, c_time), >- st.st_atime, ctime_r(&st.st_atime, a_time)); >+ printf("SAMBA\n mtime:%lld/%s ctime:%lld/%s atime:%lld/%s\n", >+ (long long)st.st_mtime, ctime_r(&st.st_mtime, m_time), >+ (long long)st.st_ctime, ctime_r(&st.st_ctime, c_time), >+ (long long)st.st_atime, ctime_r(&st.st_atime, a_time)); > > > /* check the stat on this file */ >@@ -60,10 +60,10 @@ static int gettime(const char * pUrl, > return 1; > } > >- printf("LOCAL\n mtime:%lu/%s ctime:%lu/%s atime:%lu/%s\n", >- st.st_mtime, ctime_r(&st.st_mtime, m_time), >- st.st_ctime, ctime_r(&st.st_ctime, c_time), >- st.st_atime, ctime_r(&st.st_atime, a_time)); >+ printf("LOCAL\n mtime:%lld/%s ctime:%lld/%s atime:%lld/%s\n", >+ (long long)st.st_mtime, ctime_r(&st.st_mtime, m_time), >+ (long long)st.st_ctime, ctime_r(&st.st_ctime, c_time), >+ (long long)st.st_atime, ctime_r(&st.st_atime, a_time)); > > > return 0; >--- examples/libsmbclient/teststat.c.orig Mon Apr 8 20:06:15 2013 >+++ examples/libsmbclient/teststat.c Mon Apr 8 20:08:46 2013 >@@ -47,10 +47,10 @@ int main(int argc, char * argv[]) > return 1; > } > >- printf("\nSAMBA\n mtime:%lu/%s ctime:%lu/%s atime:%lu/%s\n", >- st.st_mtime, ctime_r(&st.st_mtime, m_time), >- st.st_ctime, ctime_r(&st.st_ctime, c_time), >- st.st_atime, ctime_r(&st.st_atime, a_time)); >+ printf("\nSAMBA\n mtime:%lld/%s ctime:%lld/%s atime:%llu/%s\n", >+ (long long)st.st_mtime, ctime_r(&st.st_mtime, m_time), >+ (long long)st.st_ctime, ctime_r(&st.st_ctime, c_time), >+ (long long)st.st_atime, ctime_r(&st.st_atime, a_time)); > > if (pLocalPath != NULL) > { >@@ -60,10 +60,10 @@ int main(int argc, char * argv[]) > return 1; > } > >- printf("LOCAL\n mtime:%lu/%s ctime:%lu/%s atime:%lu/%s\n", >- st.st_mtime, ctime_r(&st.st_mtime, m_time), >- st.st_ctime, ctime_r(&st.st_ctime, c_time), >- st.st_atime, ctime_r(&st.st_atime, a_time)); >+ printf("LOCAL\n mtime:%lld/%s ctime:%lld/%s atime:%lld/%s\n", >+ (long long)st.st_mtime, ctime_r(&st.st_mtime, m_time), >+ (long long)st.st_ctime, ctime_r(&st.st_ctime, c_time), >+ (long long)st.st_atime, ctime_r(&st.st_atime, a_time)); > } > > return 0; >--- examples/libsmbclient/testutime.c.orig Mon Apr 8 20:45:07 2013 >+++ examples/libsmbclient/testutime.c Mon Apr 8 20:45:33 2013 >@@ -47,10 +47,10 @@ int main(int argc, char * argv[]) > return 1; > } > >- printf("Before\n mtime:%lu/%s ctime:%lu/%s atime:%lu/%s\n", >- st.st_mtime, ctime_r(&st.st_mtime, m_time), >- st.st_ctime, ctime_r(&st.st_ctime, c_time), >- st.st_atime, ctime_r(&st.st_atime, a_time)); >+ printf("Before\n mtime:%lld/%s ctime:%lld/%s atime:%lld/%s\n", >+ (long long)st.st_mtime, ctime_r(&st.st_mtime, m_time), >+ (long long)st.st_ctime, ctime_r(&st.st_ctime, c_time), >+ (long long)st.st_atime, ctime_r(&st.st_atime, a_time)); > > utimbuf.actime = t; /* unchangable (wont change) */ > utimbuf.modtime = t; /* this one should succeed */ >@@ -66,10 +66,10 @@ int main(int argc, char * argv[]) > return 1; > } > >- printf("After\n mtime:%lu/%s ctime:%lu/%s atime:%lu/%s\n", >- st.st_mtime, ctime_r(&st.st_mtime, m_time), >- st.st_ctime, ctime_r(&st.st_ctime, c_time), >- st.st_atime, ctime_r(&st.st_atime, a_time)); >+ printf("After\n mtime:%lld/%s ctime:%lld/%s atime:%lld/%s\n", >+ (long long)st.st_mtime, ctime_r(&st.st_mtime, m_time), >+ (long long)st.st_ctime, ctime_r(&st.st_ctime, c_time), >+ (long long)st.st_atime, ctime_r(&st.st_atime, a_time)); > > return 0; > } >--- source3/lib/sysquotas_nfs.c.orig Mon Apr 8 20:00:46 2013 >+++ source3/lib/sysquotas_nfs.c Mon Apr 8 20:01:53 2013 >@@ -155,8 +155,8 @@ int sys_get_nfs_quota(const char *path, const char *bd > gq_args.gqa_uid = id.uid; > > DEBUG(10, ("sys_get_nfs_quotas: Asking for quota of path '%s' on " >- "host '%s', rpcprog '%i', rpcvers '%i', network '%s'\n", >- host, testpath+1, RQUOTAPROG, RQUOTAVERS, "udp")); >+ "host '%s', rpcprog '%lld', rpcvers '%lld', network '%s'\n", >+ host, testpath+1, (long long)RQUOTAPROG, (long long)RQUOTAVERS, "udp")); > > clnt = clnt_create(host, RQUOTAPROG, RQUOTAVERS, "udp"); > if (clnt == NULL) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 9889
:
8891
|
8898