Fix for setatr in clifile.c

Satwik Hebbar satwikh at
Tue Apr 26 15:05:18 GMT 2005


I was using the cli_setatr function of the smbclient for setting file  
attributes on a file and the cli_setattrE function for setting timestats  
on the file. Both the functions were converting times to the dos format  
before putting them onto the wire. While this works fine for setattrE,  
setatr, which accepts a time_t value for the last write time for the file,  
sets the incorrect last write value on the file. This is because setatr  
expects times in the unix format and when I made that change to the code,  
it started setting the proper last write time value.

How do I submit the patch for this one? And how does it get verified?

When dreaming I'm guided through another world
Time and time again
At sunrise I fight to stay asleep
'Cause I don't want to leave the comfort of this place
'Cause there's a hunger, a longing to escape
 From the life I live when I'm awake

More information about the samba-technical mailing list