mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
LibFileSystem+Everything: Remove resolve_executable_from_environment
This commit is contained in:
parent
26efdf9d4f
commit
f20d04726a
12 changed files with 12 additions and 23 deletions
|
@ -4,9 +4,9 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <AK/String.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibFileSystem/FileSystem.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
@ -20,7 +20,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
args_parser.add_positional_argument(filename, "Name of executable", "executable");
|
||||
args_parser.parse(arguments);
|
||||
|
||||
auto fullpath = FileSystem::resolve_executable_from_environment(filename);
|
||||
auto fullpath = Core::System::resolve_executable_from_environment(filename);
|
||||
if (fullpath.is_error()) {
|
||||
warnln("no '{}' in path", filename);
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue