Post B5Lz2z5X1j1UyA0CJM by mirabilos@toot.mirbsd.org
(DIR) More posts by mirabilos@toot.mirbsd.org
(DIR) Post #B5KL8TY70i4vZ8TSbY by xtaran@chaos.social
0 likes, 1 repeats
#TIL: You can't save a spreadsheet in the "Save as" dialog in #LibreOffice whose file name contains an asterisk ("*"). You don't get any error message nor an greyed out "Save" button. It just does nothing, even though the originally opened file has that asterisk in the name. Escaping via backslash also doesn't work. 🤬 🤌.oO( What happens when seasoned Unix #CLI users with strong experience in quoting and escaping try out a #GUI program… )
(DIR) Post #B5KL8TtjiJNMeCajJI by js@mastodon.nl
0 likes, 0 repeats
@xtaran Any decent filename contains at least spaces, tabs, asterisks, colons and slashes. Programs meddling against them are buggy.
(DIR) Post #B5KL8UCAbm7ZZNDS2i by madalex@fosstodon.org
0 likes, 0 repeats
@js @xtaran All those are no big thing. Now, file names with newlines in it, that's a proper grownup file name.
(DIR) Post #B5KL8UOZre2uBr1MNk by xtaran@chaos.social
0 likes, 1 repeats
@madalex @js: My favourite file name for a file to delete is:-rf <Ctrl-C>Because it requires every level of #quoting:* Application level quoting by prefixing the file name with ./ so that rm doesn't take -rf as option.* Shell quoting by #escaping or quoting the blank.* Input level quoting by pressing usually <Ctrl-V> (Emacsish: <Ctrl-Q>) before <Ctrl-C> to be able to enter a literal <Ctrl-C>.(That's something you just don't unlearn once it's in your brain. 🤓 )#CLI #Bash #Zsh #Shell
(DIR) Post #B5KLDIgyntpfLDvGRE by leyrer@23.social
0 likes, 0 repeats
@xtaran @madalex @js
(DIR) Post #B5KLDIvVvrSU4Iis5o by mirabilos@toot.mirbsd.org
0 likes, 0 repeats
@xtaran @js @madalex @leyrer OR, you just mc, go to that file and F8 😼😽
(DIR) Post #B5KLRbfZ2mjwFh59sW by mirabilos@toot.mirbsd.org
0 likes, 0 repeats
@leyrer @madalex @js @xtaran and once you know the ./ part, rm ./-<Tab> in mksh will also DTRT 😽☕️
(DIR) Post #B5KLuS8nY8WT68VkgK by mirabilos@toot.mirbsd.org
0 likes, 0 repeats
@leyrer @madalex @xtaran @js for extra evil (for tools that output the filename) add some colour codes.One Tab and one newline in the filebame exercise different parts of brokenness and ought to also be included, as well as two UCS characters whose NFC and NFD differs, one of them in NFC, one in NFD, to break Apple, and a colon and a backslash to break Windows, and an upper-case character that you lowercase in an otherwise identical filename to break both.
(DIR) Post #B5KM0IdTno9vM7eMlM by mirabilos@toot.mirbsd.org
0 likes, 0 repeats
@xtaran @js @leyrer @madalex oh and one \xFE to break UCS filesystems and programs who expect filenames to be strict UTF-8.
(DIR) Post #B5KQn4cz4WijuuvmYC by madalex@fosstodon.org
0 likes, 0 repeats
@mirabilos @leyrer @xtaran @js Just as a PSA: even though you can put all those fancy characters into an file name, it's not a great idea to do so if you want them included in your company backup. Most if not all of the enterprise backup software simply throws an error when encountering anything which isn't strictly ASCII and moves on to the next file.
(DIR) Post #B5KQn4wpsibGuUDdUe by lobingera@chaos.social
0 likes, 0 repeats
@madalex @mirabilos @leyrer @xtaran @js "That's what she said!"(disclosure: ich hab schon mal ein Backup geschrottet mit 'seltsamen' Dateinamen, und es waren nicht meine)
(DIR) Post #B5KQn58XBDxRUlgyjA by xtaran@chaos.social
0 likes, 0 repeats
@lobingera @madalex @mirabilos @leyrer @js: That reminds me of a story that happened to @df7cb in the late 90s:His account was the most recent one created on a host. He created a symbolic link named index.html in his public_html directory pointing to /dev/null. Backup was done using tar. tar back then had a bug when applying ownership and permissions to symlinks in the archive. So after restoring a backup, only two users were still able to work: He and root. Because he owned /dev/null. 🤪
(DIR) Post #B5KQn5Qy4ghePwJhSa by mirabilos@toot.mirbsd.org
0 likes, 0 repeats
@xtaran @lobingera @madalex @leyrer @js @df7cb that’s assuming you can even set them; AFAICT, on BSD, symlinks’ permission bits, uid and gid are ignored(?), except for operations on the symlink itself, where the uid and gid come into play.
(DIR) Post #B5KS40tWIzsRDQJ5ma by leyrer@23.social
0 likes, 0 repeats
@madalex @mirabilos @xtaran @js I also like to use X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*.docx
(DIR) Post #B5KS418PPdmpxbGyzQ by jonas@social.jonaskoeritz.de
0 likes, 0 repeats
@leyrer @madalex @mirabilos @xtaran @js I assume extra content inside the docx zip-archive is left as-is for most parsers, so one could craft an EICAR inside a valid docx...that might lead to some interesting outcomes. PDF has attachment features too 🤔
(DIR) Post #B5KS41KofViAa54tKS by mirabilos@toot.mirbsd.org
0 likes, 0 repeats
@jonas @leyrer @madalex @xtaran @js just make sure to not compress the attached file in the PDF (qpdf may help).
(DIR) Post #B5KS8O5c0bZaJP34kq by xtaran@chaos.social
0 likes, 0 repeats
@mirabilos @lobingera @madalex @leyrer @js: Might have been SunOS 4. @df7cb probably remembers better.
(DIR) Post #B5KS8OIjDq44y5BYCO by mirabilos@toot.mirbsd.org
0 likes, 0 repeats
@xtaran @lobingera @madalex @leyrer @js @df7cb nah, I can easily believe someone forgot to exclude symlinks from permission restores
(DIR) Post #B5Lz2yCELKmsCe8276 by leyrer@23.social
0 likes, 0 repeats
@madalex @mirabilos @xtaran @js booooring ....
(DIR) Post #B5Lz2yWR8CwzDJaAbo by madalex@fosstodon.org
0 likes, 0 repeats
@leyrer @mirabilos @xtaran @js I know. real men don't back up their data.
(DIR) Post #B5Lz2yiqO4sJpnO4wq by xtaran@chaos.social
0 likes, 0 repeats
@madalex @leyrer @mirabilos @js: They just upload it to FTP and let the world mirror it? 🤪
(DIR) Post #B5Lz2yuXgaEUQ4rQBM by madalex@fosstodon.org
0 likes, 0 repeats
@xtaran Nope. Mut zur Lücke.@leyrer @mirabilos @js
(DIR) Post #B5Lz2z5X1j1UyA0CJM by mirabilos@toot.mirbsd.org
0 likes, 0 repeats
@madalex @xtaran @leyrer @js näh, seit ich LUKS habe muß die (Gedächtnis‑)Lücke ein tuëndes Backup+Restore überbrücken (hab Restore so immerhin at enz testen dürfen, es tut)