Subject: Re: rename() in B18..
From: [email-masked] (Michael Hirmke)

13 Jun 1997 19:24:00 -0700
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Original-To: [email-masked]
In-Reply-To: <[email-masked]>
Original-Sender: [email-masked]

On Thu, 12 Jun 1997, Keet wrote:

[...]
>     if( unlink("test1") < 0) {
> 	printf("Unable to unlink test1!\n");
> 	exit(1);
>     }
>     
>     if( rename("test2","test1") < 0 ) {
> 	printf("Unable to rename test2 to test1!\n");
> 	exit(1);
>     }

You try to unlink open files !

>     
>     fclose(test1);
>     fclose(test2);
> }
> 
[...]

Ciao.
Michael.
-- 
Michael Hirmke           | voice +49 (911) 557999
Georg-Strobel-Strasse 81 | fax   +49 (911) 557664
D-90489 Nuernberg        | email [email-masked]
Germany                  | www   http://minimike.franken.de/

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".