[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
write file posible inconsistency
From: |
bodhi |
Subject: |
write file posible inconsistency |
Date: |
Wed, 17 Mar 2004 21:09:27 +0200 |
User-agent: |
Opera7.23/Win32 M2 build 3227 |
Hello.
If for some reason in vtysh_client_config, write call failed, you
vclient_close (vclient);
and the integrate_default file is gonna be truncated, or without some
usefull info.
So we make the rename() only if all goes right.
I made a patch, to be more clear.
Have a nice day,
Bodhi
PS: + 2 free's.
write.patch
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- write file posible inconsistency,
bodhi <=