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

Bug: systemd deletes root, Pöttering is like [aa]I am not s

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 51
Thread images: 5

File: IMG_2605.jpg (3MB, 3456x2304px) Image search: [Google]
IMG_2605.jpg
3MB, 3456x2304px
Bug: systemd deletes root, Pöttering is like
[aa]I am not sure I'd consider this much of a problem. Yeah, it's a UNIX pitfall, but "rm -rf /foo/.*" will work the exact same way, no?[/aa]
https://github.com/systemd/systemd/issues/5644

Top kek
>>
And now, this fucker just closed(like every time) the issue.... like everytime when people see that he is talking bullshit. Why does anyone use anything from such an incompetent idiot?
>>
>>59932819
>Bug: systemd deletes root
Bug: Deleting /folder/.. deletes /folder/..
FTFY
>>
>>59933182

>issue fixed
>keeping comments open so idiots like OP who have no understanding of the whole system can get outraged while disregarding their stupidity

I would close it down too, because it's pragmatic. Issue reported, issue solved, issue closed, move on to other work.
>>
>>59933213
>>59933236
Thank you Ranjid, RedHat owes you $0.00023
>>
>>59933267
epik maymay!
>>
>"systemd is bad because it's not traditional unix-like!"
>the equivalent of rm -r .* goes up dir
>"systemd is bad because it works like traditional unix!"
>>
>poettering locked and limited conversation to collaborators 36 minutes ago

ayy
>>
>>59933313
But rm -r .* does not go up dir.
>>
>>59933602
Are you sure? It should, because .. should qualify as .*
>>
>>59933621
What would be a correct way to do it?
>>
>>59933182
He's literally paid by the NSA to help kill linux with his stupidity.
>>
Why should rm special case . or ..?
If you say you want to remove .. it should just do it, having extra checks is just bloat and not the unix way.
>>
>>59933182
It's closed because it's fixed you retard.
An issue tracker is not for your sjw-tier drama rants.
>>
>>59933313
>>59933621
It is literally mandated by POSIX/SUS that rm can't remove . and .. because it was considered an extremely easy-to-trigger hazard.
It was also mentioned in the thread on github, but that assumes that you can read and are not a total faggot.

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/rm.html#tag_20_111_16
>>
They fixed the issue though.

https://github.com/systemd/systemd/pull/5653
>>
>>59933296
Fuck off to rebbit you curry goblin shitstain
>>
>>59934233
>because it was considered an extremely easy-to-trigger hazard.
Software should not be made catering to retards.
>>
>>59934303
Hello Lennart, how's that filesystem restore going?
>>
The amount of Poo In Loos pretending this is some intended behaviour shows RedHat upped their shilling budget.

cd /tmp; mkdir -p foo/bar/; rm -rf foo/bar/.. || rm -rf foo/bar/.*
>>
>>59934162
rm doesn't expand wildcards either.
That's what the shell does.
And that does treat
 . and .. 
special.
Try it
>>
File: delet_this.png (19KB, 116x106px) Image search: [Google]
delet_this.png
19KB, 116x106px
>>59934303
>>59934144
>>
If you like BSD style init over systemd you are an idiot, move along, nothing to see here.
>>
Why do these retards rewrite everything from scratch instead of using something like glob(3)?
>>
>>59934372
BSD init is plaintext and very easy to edit for your needs.
>>
>>59934520
It's easier to hide the backdoors goy :^)
>>
>>59934520
The problem isn't with globbing, it's with their rm.
>>
>>59934520
That would be like super inefficient, dude. Now excuse me, I have to serialize 500MB of XML back and forth over DBUS
>>
>>59934372
BSD init and SysV init are two different things you retard
>>
Windows does not have this problem.
>>
File: shocking.png (77KB, 781x649px) Image search: [Google]
shocking.png
77KB, 781x649px
people like >pic related piss me off to no end
>>
>>59932819
>systemd is written by people who don't understand basic UNIX concepts like . and .. in a directory
Wew. Dodged a fucking bullet blacklisting that shit in my Gentoo install.
>>
>>59937069
Not everyone has to contribute on github.
>>
>>59937117
>using gentoo unironically
>>
>>59934303
>Software should not be made catering to retards.
and here's the guy who thinks computers should be for a select elite group.
Software MUST be designed for reliability.
>>
File: computers-are-racist.jpg (68KB, 450x200px) Image search: [Google]
computers-are-racist.jpg
68KB, 450x200px
>>59938938
give it back
>>
>>59937069
>implying we can't have private repos
>>
>>59938964
and that is why Apple was so successful.
>>
>rm should delete . and .. when the user inputs
rm -r .*
because otherwise is catering to retards!
Okay, so how do you delete all the hidden files in a directory without deleting the folder?
>>
>>59939867
rm ./.*
>>
>>59939950
>doesn't delete hidden folders
>still catches ./. and ./..
>>
>>59939867
>Okay, so how do you delete all the hidden files

>>59940011
>doesn't delete hidden folders

you know how I know you are shitty at programming?
>>
>>59940038
Answer the question.
>>
>>59940055
I don't know what the question is anymore since you fucking changed the parameters

rule #1 when discussing programming: be specific

you can't say, delete all the files, oops I meant all the directories
>>
>>59940075
Maybe not be retarded? Here's the question you keep willfully dodging:

Using a non-standard rm which is only different from normal by not refusing to recursively remove . and .., delete all files and folders in the directory whose names begin with a period, excluding . and ..

Don't try to poke holes in what the prompt is, just answer it as if you're normal. You know what the question is, you know what the problem is, now solve it.
>>
>>59932819

Why is there a custom buggy rm in systemd?
>>
>>59940223
d-bus
>>
File: 1490276203838.jpg (56KB, 1276x720px) Image search: [Google]
1490276203838.jpg
56KB, 1276x720px
>>59932819
>using poetteringware

baka desu senpai
>>
>>59940075
Why did you suddenly go quiet? I mean, after all that buildup and effort trying to figure out the question, shouldn't you have an answer? Are you still trying to figure out the solution to this trivial problem, or do we need to cater to retards and use a sane default?
>>
>>59940533
15 internet points for you Len
>>
>>59933313
Thread posts: 51
Thread images: 5


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.