diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-12 19:21:59 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-12 23:34:01 +0100 |
commit | 1a08ac72ad4610689f23ae76f41bd8adcb23fe47 (patch) | |
tree | 844395bad7a402d864512296360c9c2ef0083712 /Userland/Services/SystemServer/Service.cpp | |
parent | d551263b111bc83e65fa845ef245f43982dfd7ad (diff) | |
download | serenity-1a08ac72ad4610689f23ae76f41bd8adcb23fe47.zip |
LibC+Everywhere: Remove open_with_path_length() in favor of open()
This API was a mostly gratuitous deviation from POSIX that gave up some
portability in exchange for avoiding the occasional strlen().
I don't think that was actually achieving anything valuable, so let's
just chill out and have the same open() API as everyone else. :^)
Diffstat (limited to 'Userland/Services/SystemServer/Service.cpp')
-rw-r--r-- | Userland/Services/SystemServer/Service.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/SystemServer/Service.cpp b/Userland/Services/SystemServer/Service.cpp index 99b01b5ab6..dc798ba8cb 100644 --- a/Userland/Services/SystemServer/Service.cpp +++ b/Userland/Services/SystemServer/Service.cpp @@ -174,7 +174,7 @@ void Service::spawn(int socket_fd) if (!m_stdio_file_path.is_null()) { close(STDIN_FILENO); - int fd = open_with_path_length(m_stdio_file_path.characters(), m_stdio_file_path.length(), O_RDWR, 0); + int fd = open(m_stdio_file_path.characters(), O_RDWR, 0); ASSERT(fd <= 0); if (fd < 0) { perror("open"); |