{"thread":{"id":"47804","subject":"Crash when clone includes magic filenames on Windows","startedAt":"2018-02-10T08:56:18Z","lastAt":"2018-02-10T15:27:28Z","messageCount":5,"participants":["Jeffrey Walton","Torsten Bögershausen","Philip Oakley"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"338970","messageId":"CAH8yC8nodewYm-J3ye5Lnq-Zf9JziejL8L3TxTEwVoq8hD--HA@mail.gmail.com","threadId":"47804","inReplyTo":null,"subject":"Crash when clone includes magic filenames on Windows","fromName":"Jeffrey Walton","fromEmail":"noloader@gmail.com","sentAt":"2018-02-10T08:55:58Z","receivedAt":"2018-02-10T08:56:18Z","isPatch":false,"sender":{"key":"noloader@gmail.com","avatar":null},"body":"Hi Everyone,\n\nI'm seeing this issue on Windows: https://pastebin.com/YfB25E4T . It\nseems the filename AUX is the culprit. Also see\nhttps://blogs.msdn.microsoft.com/oldnewthing/20031022-00/?p=42073 .\n(Thanks to Milleneumbug on Stack Overflow).\n\nI did not name the file, someone else did. I doubt the filename will be changed.\n\nSearching is not turning up much information:\nhttps://www.google.com/search?q=git+\"magic+filenames\"+windows\n\nDoes anyone know how to sidestep the issue on Windows?\n\nJeff\n"},{"id":"338972","messageId":"20180210093140.GA11525@tor.lan","threadId":"47804","inReplyTo":"CAH8yC8nodewYm-J3ye5Lnq-Zf9JziejL8L3TxTEwVoq8hD--HA@mail.gmail.com","subject":"Re: Crash when clone includes magic filenames on Windows","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2018-02-10T09:31:40Z","receivedAt":"2018-02-10T09:31:46Z","isPatch":false,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"On Sat, Feb 10, 2018 at 03:55:58AM -0500, Jeffrey Walton wrote:\n> Hi Everyone,\n> \n> I'm seeing this issue on Windows: https://pastebin.com/YfB25E4T . It\n> seems the filename AUX is the culprit. Also see\n> https://blogs.msdn.microsoft.com/oldnewthing/20031022-00/?p=42073 .\n> (Thanks to Milleneumbug on Stack Overflow).\n> \n> I did not name the file, someone else did. I doubt the filename will be changed.\n> \n> Searching is not turning up much information:\n> https://www.google.com/search?q=git+\"magic+filenames\"+windows\n> \n> Does anyone know how to sidestep the issue on Windows?\n> \n> Jeff\n\nThanks for the report.\n\n(Typically nobody (tm) here on the list opens a web-browser to look at external\n material, so here is a shortened version of the pastebin:)\n\nerror: unable to create file crypto_stream/lexv2/e/v2/schwabe/sparc-2/e/aux.c: No such file or directory\nerror: unable to create file crypto_stream/lexv2/e/v2/schwabe/sparc-2/e/aux.s: No such file or directory\nSegmentation fault:  99% (26526/26793)\n\nThere are actually 2 problems:\n- The filenames named aux.c\n  It could be that git -c core.longpaths=true clone xxx\n  works, but I don't have a Windows box to test at the moment-\n\n- The crash\n  Which Git version do you use?\n  It may be a good idea to report it here\n  https://github.com/git-for-windows/git\n\n"},{"id":"338973","messageId":"CAH8yC8n2=DtWim0V9Ziiaua8wfZS-NWQ9XQUqcdGceOpN82A0w@mail.gmail.com","threadId":"47804","inReplyTo":"20180210093140.GA11525@tor.lan","subject":"Re: Crash when clone includes magic filenames on Windows","fromName":"Jeffrey Walton","fromEmail":"noloader@gmail.com","sentAt":"2018-02-10T09:42:15Z","receivedAt":"2018-02-10T09:42:21Z","isPatch":false,"sender":{"key":"noloader@gmail.com","avatar":null},"body":"On Sat, Feb 10, 2018 at 4:31 AM, Torsten Bögershausen <tboegi@web.de> wrote:\n> On Sat, Feb 10, 2018 at 03:55:58AM -0500, Jeffrey Walton wrote:\n>> Hi Everyone,\n>>\n>> I'm seeing this issue on Windows: https://pastebin.com/YfB25E4T . It\n>> seems the filename AUX is the culprit. Also see\n>> https://blogs.msdn.microsoft.com/oldnewthing/20031022-00/?p=42073 .\n>> (Thanks to Milleneumbug on Stack Overflow).\n>>\n>> I did not name the file, someone else did. I doubt the filename will be changed.\n>>\n>> Searching is not turning up much information:\n>> https://www.google.com/search?q=git+\"magic+filenames\"+windows\n>>\n>> Does anyone know how to sidestep the issue on Windows?\n>>\n>> Jeff\n>\n> Thanks for the report.\n>\n> (Typically nobody (tm) here on the list opens a web-browser to look at external\n>  material, so here is a shortened version of the pastebin:)\n>\n> error: unable to create file crypto_stream/lexv2/e/v2/schwabe/sparc-2/e/aux.c: No such file or directory\n> error: unable to create file crypto_stream/lexv2/e/v2/schwabe/sparc-2/e/aux.s: No such file or directory\n> Segmentation fault:  99% (26526/26793)\n>\n> There are actually 2 problems:\n> - The filenames named aux.c\n>   It could be that git -c core.longpaths=true clone xxx\n>   works, but I don't have a Windows box to test at the moment-\n\nThanks. This did not help.\n\n> - The crash\n>   Which Git version do you use?\n>   It may be a good idea to report it here\n>   https://github.com/git-for-windows/git\n\n2.16.1-2\n\nThanks again.\n\nJeff\n"},{"id":"338980","messageId":"BD73CAACE3734EE89EE1CFBE1DC55FEC@PhilipOakley","threadId":"47804","inReplyTo":"CAH8yC8nodewYm-J3ye5Lnq-Zf9JziejL8L3TxTEwVoq8hD--HA@mail.gmail.com","subject":"Re: Crash when clone includes magic filenames on Windows","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":null,"receivedAt":"2018-02-10T10:29:46Z","isPatch":false,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"From: \"Jeffrey Walton\" <noloader@gmail.com>\n> Hi Everyone,\n>\n> I'm seeing this issue on Windows: https://pastebin.com/YfB25E4T . It\n> seems the filename AUX is the culprit. Also see\n> https://blogs.msdn.microsoft.com/oldnewthing/20031022-00/?p=42073 .\n> (Thanks to Milleneumbug on Stack Overflow).\n>\n> I did not name the file, someone else did. I doubt the filename will be \n> changed.\n>\n> Searching is not turning up much information:\n> https://www.google.com/search?q=git+\"magic+filenames\"+windows\n>\n> Does anyone know how to sidestep the issue on Windows?\n>\n> Jeff\n>\nThis comes up on the Git-for-Windows (GfW) issues fairly often \nhttps://github.com/git-for-windows/git/issues.\n\nThe fetch part of the clone is sucessful, but the final checkout step fails \nwhen the AUX (or any other prohibited filename - that's proper cabkward \ncompatibility for you) is to be checked out then the file system (FS) \nrefuses and the checkout 'fails. You do however have the full repo locally.\n\nThe trick is probably then to set up a sparse checkout so the AUX is never \nincluded on the FS.\n\nHowever it is an open 'up-for-grabs' project to add such a check in GfW.\n\nPhilip \n\n"},{"id":"338988","messageId":"00CF0CF5FAFD47F6BA3478838677BBAB@PhilipOakley","threadId":"47804","inReplyTo":"BD73CAACE3734EE89EE1CFBE1DC55FEC@PhilipOakley","subject":"Re: Crash when clone includes magic filenames on Windows","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":null,"receivedAt":"2018-02-10T15:27:28Z","isPatch":false,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"From: \"Philip Oakley\" <philipoakley@iee.org>\n> From: \"Jeffrey Walton\" <noloader@gmail.com>\n>> Hi Everyone,\n>>\n>> I'm seeing this issue on Windows: https://pastebin.com/YfB25E4T . It\n>> seems the filename AUX is the culprit. Also see\n>> https://blogs.msdn.microsoft.com/oldnewthing/20031022-00/?p=42073 .\n>> (Thanks to Milleneumbug on Stack Overflow).\n>>\n>> I did not name the file, someone else did. I doubt the filename will be\n>> changed.\n>>\n>> Searching is not turning up much information:\n>> https://www.google.com/search?q=git+\"magic+filenames\"+windows\n>>\n>> Does anyone know how to sidestep the issue on Windows?\n>>\n>> Jeff\n>>\n> This comes up on the Git-for-Windows (GfW) issues fairly often\n> https://github.com/git-for-windows/git/issues.\n>\n> The fetch part of the clone is sucessful, but the final checkout step\n> fails when the AUX (or any other prohibited filename - that's proper\n> cabkward compatibility for you) is to be checked out then the file system\n> (FS) refuses and the checkout 'fails. You do however have the full repo\n> locally.\n>\n> The trick is probably then to set up a sparse checkout so the AUX is never\n> included on the FS.\n>\n> However it is an open 'up-for-grabs' project to add such a check in GfW.\n>\n> Philip\nOne option maybe to extend the $GIT_DIR/info/sparse-checkout capability and\nadd a specific $GIT_DIR/info/never-sparse-checkout file that could carry the\ncomplement (files & dirs) options that are platform applicable (no AUX, no\nCOM1, no colons, etc.;-), so that it does not conflict with the users'\nregular sparse checkout selection in $GIT_DIR/info/sparse-checkout. It's\nprobably easier to understand that way.\n--\nPhilip\n\n"}]}