Closed jgoerzen closed 1 year ago
Hi John
after code review I come to the following conclusion:
Thus, the bug report you mention is also obsolete and does not more reflect any problem with libdar, if ever this was not a OS inconsistency (I could not find any error in the code related to readdir_r, but would need test further to be sure, which I will not do because readdir_r is deprecated).
I will rather cleanup the code from these old stuff which make it complex and difficult to read, but this should not change anything in libdar's behavior
Best Regards, Denis
code cleaned up with commit 5b58f375e8585f35258128cf9da334f8b33c64ee
closing issue with release 2.7.10
Hi Denis,
I've taken over maintaining Dar in Debian, and am going over old Dar bugs in the Debian bug-tracking system.
In there, we have https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=912387, which says "dar doesn't backup maximum length files" and was reported against Dar 2.5.8. It inclues this proposed patch:
I see there is similar code present in 2.7.9:
I must admit to being a bit unclear about the logic here (especially where max_alloc_filename comes from). However, it looks like the difference between the code in 2.7.9 and the proposed patch hinges on the difference between
strlen(ret->d_name) => max_alloc_filename
andstrlen(ret->dname) > max_alloc_filename
.I also wonder if the message in 2.7.9 is accurate; it says "storing filename as is" but the subsequent
continue
implies that maybe it's not actually storing the filename at all, I think.Thanks!