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
>>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.
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.
>>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 inputsrm -r .*because otherwise is catering to retards!
Okay, so how do you delete all the hidden files in a directory without deleting the folder?
>>59939867rm ./.*
>>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
>>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