ln: Don't require link target to exist for symlinks

This commit is contained in:
Bananymous 2025-01-28 17:46:36 +02:00
parent 48eca3d031
commit 7fedd94cc5
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ int main(int argc, const char* argv[])
const char* target = argv[i++];
struct stat st;
if (stat(target, &st) == -1)
if (!do_symlink && stat(target, &st) == -1)
{
perror("stat");
return 1;