1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

libsmbclient: Fix 32-bit problems

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Mon Sep  7 15:13:08 CEST 2015 on sn-devel-104
This commit is contained in:
Volker Lendecke 2015-09-04 16:40:25 +02:00 committed by Michael Adam
parent e79877a230
commit a7b6dd4f2f
3 changed files with 24 additions and 24 deletions

View File

@ -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:%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));
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;

View File

@ -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;

View File

@ -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;
}