mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
Fixed dos2unix and unix2dos.
This commit is contained in:
@@ -95,7 +95,7 @@ int dos2u (char *path)
|
||||
unlink (temppath);
|
||||
return TRUE;
|
||||
}
|
||||
if (link (temppath,path) == -1)
|
||||
if (rename (temppath,path) == -1)
|
||||
{
|
||||
fprintf (stderr, "Dos2Unix: Problems renaming '%s' to '%s'\n", temppath, path);
|
||||
fprintf (stderr, " However, file '%s' remains\n", temppath);
|
||||
|
||||
@@ -93,7 +93,7 @@ int u2dos (char *path)
|
||||
unlink (temppath);
|
||||
return TRUE;
|
||||
}
|
||||
if (link (temppath,path) == -1)
|
||||
if (rename (temppath,path) == -1)
|
||||
{
|
||||
fprintf (stderr, "Unix2Dos: Problems renaming '%s' to '%s'\n", temppath, path);
|
||||
fprintf (stderr, " However, file '%s' remains\n", temppath);
|
||||
|
||||
Reference in New Issue
Block a user