Bug 968591

Summary: hardlink utility skips all files with filenames ending with a dot and 6 other characters.
Product: [openSUSE] openSUSE Distribution Reporter: Forgotten User 1SbPeiPqxK <forgotten_1SbPeiPqxK>
Component: BasesystemAssignee: Frederic Crozat <fcrozat>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: fcrozat
Version: 13.2   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 13.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User 1SbPeiPqxK 2016-02-28 13:31:38 UTC
I was wondering about some skipped files using the hardlink command line utility, e.g.
backup> # hardlink -v .
...
Skipping ./20150209/home/koester/.xserverrc.secure
...

Looking at the source code ( hardlink-1.0-7.1.2.src.rpm: hardlink.c line 375) shows that this behavior is intended: All files with a filename longer than 7 characters, having a dot and exact 6 other characters at the end, are skipped. I assume this is a reminder of some test case?

I can provide a fixing patch, but I'm not familiar how to do it in this portal, so may be someone can give me an idea how to proceede.
Comment 1 Andreas Stieger 2016-02-28 14:04:55 UTC
*** Bug 968592 has been marked as a duplicate of this bug. ***
Comment 2 Andreas Stieger 2016-02-28 14:05:04 UTC
*** Bug 968593 has been marked as a duplicate of this bug. ***
Comment 3 Frederic Crozat 2016-02-29 08:56:35 UTC
Looking at the history of the file (http://pkgs.fedoraproject.org/cgit/rpms/hardlink.git/log/hardlink.c ) I can't really say why it was restricting to 7 characters. It might be for the original source of hardlink.c (which was shipped with kernel) to prevent broken filenames with FAT filesystems.

To attach a patch, just click on "add an attachmament" on the bug report page.
Comment 4 Tomáš Chvátal 2018-04-12 14:08:25 UTC
This version of openSUSE changed to end-of-life (EOL [1]) status. As such
it is no longer maintained, which means that it will not receive any
further security or bug fix updates.
As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
openSUSE, or consider the bug still valid, please feel free to reopen this
bug against that version, or open a new ticket.

Thank you for reporting this bug and we are sorry it could not be fixed
during the lifetime of the release.

[1] https://en.opensuse.org/Lifetime