diff options
| author | Ulf Hermann <[email protected]> | 2018-07-23 12:13:13 +0200 |
|---|---|---|
| committer | Ulf Hermann <[email protected]> | 2018-07-23 11:39:08 +0000 |
| commit | d18dfa30b177e6ae4292dd0431838fff29352a46 (patch) | |
| tree | 01c6f6e12d209d62b71eeaa7ef647e4cb4a40138 /src | |
| parent | bc067a19e0f237487abef8728093cfbd1787d6d8 (diff) | |
ranlib: unlink only after close
Windows won't unlink open files.
Change-Id: I23f785a8463aa29a972598e1e5a25b4f92448cb8
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/ranlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ranlib.c b/src/ranlib.c index cd52219d..0aab1c2c 100644 --- a/src/ranlib.c +++ b/src/ranlib.c @@ -232,9 +232,9 @@ handle_file (const char *fname) { // XXX Use /prof/self/fd/%d ??? nonew_unlink: - unlink (tmpfname); if (newfd != -1) close (newfd); + unlink (tmpfname); goto nonew; } |
