[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
We have an idiot engineer here at work who doesn't escape/sanitize
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 28
Thread images: 4
File: rage.jpg (31 KB, 640x427) Image search: [Google]
rage.jpg
31 KB, 640x427
We have an idiot engineer here at work who doesn't escape/sanitize filenames in the bash scripts he writes. Because of this, sometimes filenames with dashes in them fail, and he blames us, claiming dashes are "illegal filename characters in Linux."

First of all, that statement barely makes sense, and second, I know it's wrong but I can't find a source to definitively prove to my boss how full of shit he is.

The filesystems in question here are NFS for the SAN storage, and Ext-3.

Any good sources I can point my bosses to? I'm trying to get this guy fired before he can retire in two years.

Also: Things that make you angry. Pic related.
>>
>>54475303
ok
>>
>>54475303
nice blog post anon
>>
>>54475431
>>54475728
In other words, you guys don't know either. How embarrassing.
>>
>>54475303
https://en.wikipedia.org/wiki/Ext3
look on the side box

tell him to stop being so autistic and fix his scripts, or dont use '-' in file names
why the fuck do you even bother making a thread about this?
>>
>Trying to get a guy fired, and not just showing him where he's wrong.

Karma will most certainly come back to bite you on the ass.
>>
>>54475888
I've showed him before, and he insists I'm incorrect.

>>54475862
All bytes except NUL ('\0') and '/'

Perfect. Thank you.
>>
>>54475815
For you, foremost.
>>
>>54476086
not really. i have no problem with people like op who ask questions. i do have a problem with people like the rest who choose to vent their sexual frustrations
>>
>>54475303
also a hint: if those were indeed illegal filename characters the system would prevent you from using them in filenames. Duh.
>>
File: 920x920.jpg (71 KB, 920x654) Image search: [Google]
920x920.jpg
71 KB, 920x654
>>
>>54476158
incorrect. op mentioned san storage, which could be mounted on several operating systems. one os may allow the creation of a while with a name that would be considered illegal to another operating system with the same share mounted.
>>
1. Get a copy of >pic related:

http://www.amazon.com/Unicode-Standard-Version-5-0-5th/dp/0321480910/

2. Show him the book, tell him he must assume filenames contain every possible combination in that book.

>even the control characters?
ESPECIALLY the control characters!

3. If he continues to fuck up, hit him with the book and go back to step 2.

>If he asks you about the private areas, hit him with the book.
>If he asks about the unassigned areas, hit him with the book.
>If he asks about the Cuneiform or Linear B sections, hit him with the book.
>If he asks about the problems inherent with displaying traditional Mongolian (a top-to-bottom, left-to-right cursive writing system) and whether it will ever be properly supported, HIT HIM WITH THE BOOK.
>>
>>54476290
What if he grabs the book and hits me with it?
>>
>>54476347
Unfortunately, that's when you have to escalate the matter.
>>
>>54476412
Brilliant, I had a hearty laugh.
>>
You just need quotes around your bash variables.

That said, - shouldn't cause any issues Unescaped if it's in the middle of a file name. I'd say you have a different issue and all of you are retards for not being able the debug the issue.

Good god what kind of company is this?
>>
>>54475888
>showing him where he's wrong.
You can show a nig nog how to be white, but you can't make them stop nogging.
>>
>>54476588
Funny you should mention that, because yeah he's black
>>
>>54475303
>First of all, that statement barely makes sense, and second, I know it's wrong but I can't find a source to definitively prove to my boss how full of shit he is.
POSIX specifies filepaths to be any combination of legal bytes except '\0' and '/' which are the only two forbidden characters.
>>
>>54476688
Better do what he says then. You wouldn't want to be racist.
>>
>>54476196
>on several operating systems
The statement was "dashes are illegal in Linux". This sentence is false. As proof I just did "touch -". If he wants to change his statement sure, but that's not OP's problem.
>>
Correct his scripts and show him how it is supposed to be done
>>
At the end of the day that guy is going to get paid the same as you and get laid
>>
>>54477639
I write shitty bash scripts and I'm not getting laid when does that bit come in?
>>
>>54476412
Beautiful senpai
>>
>>54477639
He's near retirement age.
>>
>>54476106
But OP is asking for his taint to be checked?
Thread replies: 28
Thread images: 4

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.