<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx</link><description>I recently figured out a problem that I've been having with one of our internal tools. The tool is used to automatically deploy our daily builds (extremely handy when you're doing that every other day to several test machines). As a part of the tool,</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8572365</link><pubDate>Wed, 04 Jun 2008 03:00:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8572365</guid><dc:creator>Peter Ritchie</dc:creator><description>&lt;p&gt;I hear you man. &amp;nbsp;I encounter this sort of thing (not with passwords, but filenames) all the time. &amp;nbsp;I sympathize.&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8572564</link><pubDate>Wed, 04 Jun 2008 05:47:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8572564</guid><dc:creator>Mark Sowul</dc:creator><description>&lt;p&gt;And thus, &amp;quot;Program Files&amp;quot; and &amp;quot;Documents and Settings&amp;quot; were born - apocryphally, to force the others that didn't know that filenames can contain spaces. &amp;nbsp;So when you see an app that wants to install in C:\Litware, guess why (often, anyway)? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Heh, we had an issue with our app on 64-bit Windows because Oracle didn't like the parentheses in Program Files (x86).&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8572572</link><pubDate>Wed, 04 Jun 2008 05:52:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8572572</guid><dc:creator>Mark Sowul</dc:creator><description>&lt;p&gt;(Eh, I don't know if you're as zealous about &amp;quot;don't name names&amp;quot; as Raymond, so bowdlerize accordingly. &amp;nbsp;I personally don't like to reward vendors with shoddy or lazy things like this and prefer to point them out. &amp;nbsp;I remember a post on &amp;quot;don't spam the quick launch/system tray/top of start menu with your crapware&amp;quot; and a comment was, &amp;quot;I wondeR who hE's tALking about&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/oldnewthing/archive/2003/09/03/54760.aspx#54762"&gt;http://blogs.msdn.com/oldnewthing/archive/2003/09/03/54760.aspx#54762&lt;/a&gt;)&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8572589</link><pubDate>Wed, 04 Jun 2008 06:03:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8572589</guid><dc:creator>LarryOsterman</dc:creator><description>&lt;p&gt;Mark, I try not to disparage other vendors, simply because it's stupid to point fingers - there's more than enough blame to go around.&lt;/p&gt;
&lt;p&gt;Sometimes you need a forcing function :).&lt;/p&gt;
</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8572868</link><pubDate>Wed, 04 Jun 2008 09:56:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8572868</guid><dc:creator>Damit</dc:creator><description>&lt;p&gt;Unfortunately, this isn't (to my knowledge) the only internal MS tool that fails at handling passwords with spaces in them - there are so many others that I had to give up on using spaces in my passphrases and instead smush everything up into one word. Makes for an interesting experience when you're trying to type your password out in a hurry. :)&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8573170</link><pubDate>Wed, 04 Jun 2008 14:58:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8573170</guid><dc:creator>Mark Sowul</dc:creator><description>&lt;p&gt;Of course. &amp;nbsp;We all make mistakes, but then there's willful/negligent/lazy stuff (like Apple's new Safari &amp;quot;flaw&amp;quot;/&amp;quot;not flaw&amp;quot;).&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8573172</link><pubDate>Wed, 04 Jun 2008 14:59:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8573172</guid><dc:creator>Boris</dc:creator><description>&lt;p&gt;OK, but don't you get tired of typing long passwords? How often do you unlock your workstation?&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8573243</link><pubDate>Wed, 04 Jun 2008 15:48:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8573243</guid><dc:creator>Dave</dc:creator><description>&lt;p&gt;Larry, it sounds to me like normal command line parsing. The -useuser option takes two arguments, username and password. In the unquoted version you have given it a password (&amp;quot;The&amp;quot;) and several other arguments (&amp;quot;rain in spain...&amp;quot;). One or more spaces separate arguments on the command line. If you want embedded spaces in your argument, quote it.&lt;/p&gt;
&lt;p&gt;To see the nightmare that results when software tries to figure out quotes that aren't there, look at CreateProcess:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ms682425"&gt;http://msdn.microsoft.com/en-us/library/ms682425&lt;/a&gt;(VS.85).aspx&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;For example, consider the string &amp;quot;c:\program files\sub dir\program name&amp;quot;. This string can be interpreted in a number of ways. The system tries to interpret the possibilities in the following order:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;c:\program.exe files\sub dir\program name&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;c:\program files\sub.exe dir\program name&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;c:\program files\sub dir\program.exe name&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;c:\program files\sub dir\program name.exe &lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8573337</link><pubDate>Wed, 04 Jun 2008 16:50:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8573337</guid><dc:creator>LarryOsterman</dc:creator><description>&lt;p&gt;Dave, the issue here is that the tool correctly handles spaces on the command line but the test harness &amp;lt;i&amp;gt;didn't&amp;lt;/i&amp;gt;. &amp;nbsp;The reason that the test harness didn't was because the maintainer of the test harness had no idea that spaces were legal in passwords.&lt;/p&gt;
&lt;p&gt;That's why I figuratively threw my hands up in exasperation.&lt;/p&gt;
</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8573611</link><pubDate>Wed, 04 Jun 2008 19:54:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8573611</guid><dc:creator>Mihai</dc:creator><description>&lt;p&gt;Adding quotes solves this problem.&lt;/p&gt;
&lt;p&gt;But it would not solve the problem of Unicode characters in user name/passwords, which are also valid :-)&lt;/p&gt;
&lt;p&gt;I know, the console has /U and some level of Unicode support, but it is tough to tell in this case (testtool would need to use wmain, for instance :-)&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8573939</link><pubDate>Wed, 04 Jun 2008 23:22:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8573939</guid><dc:creator>Harry Johnston</dc:creator><description>&lt;p&gt;On the other hand, quote marks are also legal in passwords. &amp;nbsp;Whether or not you can cover that case as well without modifying testtool.exe depends on the details of how it processes the command-line arguments (and arguably on whether those details are documented).&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8574004</link><pubDate>Wed, 04 Jun 2008 23:54:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8574004</guid><dc:creator>Dave</dc:creator><description>&lt;p&gt;Sure, Harry, if the test harness did something like &amp;quot;%password%&amp;quot; (assuming it uses batch file syntax) to call testtool, it could be foiled by a quote. But it is kind of scary that the developer didn't know the args could have spaces. Just don't put him in charge of validating Internet data.&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8574069</link><pubDate>Thu, 05 Jun 2008 00:41:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8574069</guid><dc:creator>Karellen</dc:creator><description>&lt;p&gt;&amp;quot;spaces have been legal in filenames since MS-DOS 2.0&amp;quot;&lt;/p&gt;
&lt;p&gt;Hmmm.....while technically that may be true for the underlying FAT filesystem, they were effectively useless as there was no way of escaping spaces on the DOS command line. So such filenames were not usable from DOS. They may have been usable from applications that ran on top of DOS and FAT, but they were not usable from DOS itself. I'm not sure when this changed but I suspect not until maybe DOS 5 or more likely DOS 6.&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8574278</link><pubDate>Thu, 05 Jun 2008 03:06:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8574278</guid><dc:creator>Tony Toews - MS Access MVP</dc:creator><description>&lt;p&gt;I didn't know spaces were valid in a Windows password until I happened to be watching a Microsoft video a year or three ago. &amp;nbsp; Oh I knew all about file names having spaces but not Windows passwords.&lt;/p&gt;
&lt;p&gt;I'm a database developer specializing in MS Access for the last ten or fourteen years. &amp;nbsp;I've been using Windows at least that long. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Many, many users don't know that either. &amp;nbsp;I've asked around. I'd suggest adding some text to the Windows login screen.&lt;/p&gt;</description></item><item><title>News Flash: Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8574347</link><pubDate>Thu, 05 Jun 2008 03:35:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8574347</guid><dc:creator>Tonys Microsoft Access Blog</dc:creator><description>&lt;p&gt;News Flash: Spaces are legal characters in both filenames and passwords! My comments to that posting&lt;/p&gt;
</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8574365</link><pubDate>Thu, 05 Jun 2008 03:59:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8574365</guid><dc:creator>John</dc:creator><description>&lt;p&gt;This is why my password is 16 spaces - nobody would ever guess that!&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8574573</link><pubDate>Thu, 05 Jun 2008 07:47:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8574573</guid><dc:creator>John Vert</dc:creator><description>&lt;p&gt;Try installing Vista into &amp;quot;C:\Windows Vista (x64)&amp;quot; instead of C:\Windows then come back and tell us that spaces are legal in filenames. &lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8574844</link><pubDate>Thu, 05 Jun 2008 12:31:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8574844</guid><dc:creator>AndyC</dc:creator><description>&lt;p&gt;Ooh, that's a new one. I've seen systems break horrendously with other characters (such as , ; or : ) that are used internally as separators, but I've never thought to try it with spaces. I wonder how many of our corporate apps would fall over at that one.&lt;/p&gt;
&lt;p&gt;That could make for a fun afternoon.... &lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8574881</link><pubDate>Thu, 05 Jun 2008 13:01:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8574881</guid><dc:creator>Jim T</dc:creator><description>&lt;p&gt;Spaces are also legal in usernames. We can't use a very expensive monitoring tool because the licence manager can't recognise our usernames.&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8574978</link><pubDate>Thu, 05 Jun 2008 14:01:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8574978</guid><dc:creator>Mark Sowul</dc:creator><description>&lt;p&gt;The fact that you can create such a folder shows they are legal in filenames, obviously. &amp;nbsp;That software misbehaves or ignores this fact doesn't make it untrue.&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8575192</link><pubDate>Thu, 05 Jun 2008 16:00:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8575192</guid><dc:creator>J</dc:creator><description>&lt;p&gt;Honestly, I'm just surprised that Larry is surprised. &lt;/p&gt;
&lt;p&gt;First, I wouldn't be surprised that cmd.exe/runtime library would mangle the spacing anyway (if you had two spaces in a row in your password Larry, you should have been more surprised if it actually did work). Passing anything on the command line with spaces by quoting it is a very old pattern (and it's what you have to do with file paths that have spaces), I really don't know why this would be a surprise to such an experienced DOS/Windows user. I would have just done it automatically.&lt;/p&gt;
&lt;p&gt;Secondly, I know you're trying to poke fun, but really I'm surprised you even expected the coder to think of these things. You know that passwords with spaces aren't an 80% scenario (it's at the very best a 5% scenario) which is generally first to the triage room floor. &amp;nbsp;Admittedly it's a higher severity so it should be prioritized higher, but do you really expect it to be considered in the first pass of developing an application, especially an internal tool?&lt;/p&gt;
&lt;p&gt;And finally, given that your attempt using quotes actually *worked*, I don't know why you responded in comments that testtool was broken, but maybe there's some higher level problem?&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8575265</link><pubDate>Thu, 05 Jun 2008 16:38:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8575265</guid><dc:creator>LarryOsterman</dc:creator><description>&lt;p&gt;J: I said that the test harness was broken (actually it was misconfigured), not that the test tool was broken. &amp;nbsp;The test harness launches the test tool. &amp;nbsp;And I've never tried two spaces together. &amp;nbsp;I have to change my password in the next couple of days, I'll try that and see what happens :).&lt;/p&gt;
&lt;p&gt;John Vert: You're nasty (in a good way) :). &amp;nbsp;I've never thought to try that.&lt;/p&gt;
</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8575521</link><pubDate>Thu, 05 Jun 2008 18:47:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8575521</guid><dc:creator>budsbd</dc:creator><description>&lt;p&gt;Larry, you'd better tell that to your colleagues over at Windows Live. Just yesterday I was trying to change my password, and it wouldn't let me put spaces (it failed and complained about illegal characters).&lt;/p&gt;
</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8575527</link><pubDate>Thu, 05 Jun 2008 18:49:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8575527</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Calling out a coworker on a public blog... classy move, dick.&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8575584</link><pubDate>Thu, 05 Jun 2008 19:09:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8575584</guid><dc:creator>LarryOsterman</dc:creator><description>&lt;p&gt;budsbd: Live may have their own password policy, I was referring to Windows.&lt;/p&gt;
</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8575985</link><pubDate>Thu, 05 Jun 2008 21:39:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8575985</guid><dc:creator>Jonathan</dc:creator><description>&lt;p&gt;Sound like the test harness is open to &amp;quot;harness injection&amp;quot;. How would it handle a password like &amp;quot;password &amp;amp;echo I am an evil injected script&amp;quot;?&lt;/p&gt;
&lt;p&gt;I initially wanted to write &amp;quot;format c:&amp;quot; there, but a test harness that installs Windows probably does that anyways.&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8576045</link><pubDate>Thu, 05 Jun 2008 22:14:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8576045</guid><dc:creator>Peter</dc:creator><description>&lt;p&gt;Command-line parsing is an &amp;quot;interesting&amp;quot; problem. &amp;nbsp;Just whacking the word into quotes, as people noted, will cause other problems.&lt;/p&gt;
&lt;p&gt;It's even hit the funny pages: &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://xkcd.com/327/"&gt;http://xkcd.com/327/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;One of my favorite issues? &amp;nbsp;Parsing does very odd things with backslashes -- RunMyProgram &amp;quot;c:\&amp;quot; &amp;quot;at once&amp;quot; will actually pass in a single parameter &amp;lt;&amp;lt;c:\ &amp;quot;at once&amp;gt;&amp;gt;&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8576132</link><pubDate>Thu, 05 Jun 2008 22:51:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8576132</guid><dc:creator>LarryOsterman</dc:creator><description>&lt;p&gt;Oooh, Little Bobby Tables. &amp;nbsp;One of my all time favorite XKCD cartoons.&lt;/p&gt;
&lt;p&gt;Jonathan, yup, the test harness is likely to be subject to SQL injection style attacks. &amp;nbsp;It's an internal test tool however and as such it's not really a big deal - you can get the test harness to execute arbitrary test scripts (ie commands) so it's not like there's any additional risk associated with &amp;quot;harness injection&amp;quot; attacks.&lt;/p&gt;
</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8578521</link><pubDate>Fri, 06 Jun 2008 20:28:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8578521</guid><dc:creator>Eff Five</dc:creator><description>&lt;p&gt;Non-printable characters are legal for filenames/users/passwords as well (e.g. ALT-255), and can sometimes defeat validation on fields that don't allow just empty spaces. &lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8601737</link><pubDate>Sun, 15 Jun 2008 22:35:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8601737</guid><dc:creator>Yuhong Bao</dc:creator><description>&lt;p&gt;&amp;quot;my &amp;quot;password&amp;quot; is actually a passphrase - the theory is that passphrases are harder to crack than passwords because they are drawn from a larger dictionary.&amp;quot;&lt;/p&gt;
&lt;p&gt;Also it prevents generation of the LM hash. Care to blog about the story behind that?&lt;/p&gt;</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8641438</link><pubDate>Mon, 23 Jun 2008 09:29:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8641438</guid><dc:creator>ndiamond</dc:creator><description>&lt;p&gt;&amp;quot;On Microsoft operating systems, spaces have been legal in filenames since MS-DOS 2.0 (about 1982)&amp;quot;&lt;/p&gt;
&lt;p&gt;But they couldn't be stored in FAT file systems until long file names were supported. &amp;nbsp;They still can't be stored in short file names in FAT file systems.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/whdc/system/platform/firmware/fatgen.mspx"&gt;http://www.microsoft.com/whdc/system/platform/firmware/fatgen.mspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The document's file name is fatgen103.doc&lt;/p&gt;
&lt;p&gt;Page 29, section &amp;quot;Short Directory Entries&amp;quot;&lt;/p&gt;
&lt;p&gt;There are some bugs in that section. &amp;nbsp;The total path length of a short name looks like a garbage statement because a path can be a combination of long named components and short named components, but we're really concerned with each individual short name. &amp;nbsp;Short names containing the German sharp s character are not always converted to upper case. &amp;nbsp;However, there is no inconsistency in the exclusion of space characters from the list, so this doesn't look like a bug.&lt;/p&gt;
&lt;p&gt;There are some bugs in the subsequent section too, for example because paths containing long names can be a lot longer than 260 characters (on disk even though not in some APIs). &amp;nbsp;However, again there is no inconsistency in the stated permission for embedded spaces in a long name. &amp;nbsp;As well, the stated permission for embedded spaces in a long name makes it pretty clear that the absence of permission in a short name is not a bug.&lt;/p&gt;
</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8663398</link><pubDate>Sat, 28 Jun 2008 13:04:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8663398</guid><dc:creator>ndiamond</dc:creator><description>&lt;p&gt;Mr. Osterman informed me by e-mail that the fatgen103.doc document is incorrect and might get fixed.&lt;/p&gt;
&lt;p&gt;I hope someday to know the correct rules.&lt;/p&gt;
&lt;p&gt;Now for a comment about passwords. &amp;nbsp;Around 30 years ago I used a system where pressing just the backspace key would delete input of the previous character, but pressing shift + backspace would input a backspace character. &amp;nbsp;When setting my password I intentionally input a backspace character, and it appeared to work. &amp;nbsp;When logging in I did the same thing, and got logged in. &amp;nbsp;But later I learned that backspaces were illegal in passwords on that system.&lt;/p&gt;
</description></item><item><title>re: News Flash:  Spaces are legal characters in both filenames and passwords!</title><link>http://blogs.msdn.com/larryosterman/archive/2008/06/03/news-flash-spaces-are-legal-characters-in-both-filenames-and-passwords.aspx#8714501</link><pubDate>Thu, 10 Jul 2008 03:20:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8714501</guid><dc:creator>Maurits</dc:creator><description>&lt;p&gt;Meh. &amp;nbsp;I'm of two minds on this issue.&lt;/p&gt;
&lt;p&gt;On the one hand, the test tool is asking for the password. &amp;nbsp;So you should be expected to just be able to give it the password. &amp;nbsp;Any addition of surrounding quotes (which is easy) or escaping of internal quotes (which is hard) or nonprintable characters (which borders on impossible) is the responsibility of the test tool.&lt;/p&gt;
&lt;p&gt;Fine.&lt;/p&gt;
&lt;p&gt;On the other hand, looking at it another way, the test tool is a glorified command line builder. &amp;nbsp;From this point of view, it is perfectly reasonable for the test tool to expect the user (Larry) to enter, not the password, but &amp;quot;the thing that goes after -password in the command line&amp;quot;. &amp;nbsp;From this POV, the responsibility for escaping quotes and whatnot falls on Larry.&lt;/p&gt;
&lt;p&gt;This has the ring of transparency to it.&lt;/p&gt;
&lt;p&gt;But this POV would horribly break if the test tool fed the password to two different things that parse command lines differently.&lt;/p&gt;
</description></item></channel></rss>