Save basename and dirname for use in unlinkat() when removing UNIX sockets from fs.
Details
Details
- Reviewers
emaste markj - Commits
- rG5b44c24f8524: syslogd: unlink() -> unlinkat()
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
Actually, after reading about this, I don't think so. It seems like funlinkat() purely exists to ensure that you're unlinking an inode that matches the given path. I don't think it can remove a file without the directory descriptor.
usr.sbin/syslogd/syslogd.c | ||
---|---|---|
2320 | I'm not convinced we need to do this cleanup (aside from the unlinkat()) immediately prior to exiting. There's a lot of other stuff that isn't cleaned up. |
usr.sbin/syslogd/syslogd.c | ||
---|---|---|
2320 |
A good portion of this program is inconsistent in this matter. I'll remove it, though. |