[Debburn-devel] Unexpected joliet directory length...

Harald Hoyer harald at redhat.com
Tue Sep 16 17:39:45 UTC 2008


Peter Samuelson wrote:
> [Harald Hoyer]
>>  	if (this_dir == root && strcmp(short_name, "..") == 0) {
>> -		statbuf = root_statbuf;
>> -		lstatbuf = root_statbuf;
>> +		if (!root_statbuf.st_ctime) {
>> +			stat_filter(dirname(whole_path), &root_statbuf);
>> +		}
>> +		memcpy(&statbuf, &root_statbuf, sizeof(statbuf));
>> +		memcpy(&lstatbuf, &root_statbuf, sizeof(lstatbuf));
> 
> Why did you replace "=" with memcpy?  They do exactly the same thing,
> and "=" is a lot shorter and easier to read.  Is there a problem with
> it that I don't know about?


hmm, sry, maybe because I don't trust compilers much in that area (historically) :)



More information about the Debburn-devel mailing list