You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an Augeas save is done and the destination file is not writable, the temporary file that Augeas uses is left behind and not cleaned up.
If run from a regularly executing job it can lead to accumulation of a great many temporary files.
The error returned in Augeas is "rename_augtemp" and I believe that the place to fix it would be in transform.c:clone_file but it isn't quite clear to me what the proper implementation of fix would be.
The text was updated successfully, but these errors were encountered:
I think the way to fix this would be to call unlink(augtemp) in the error handling in transform_save on line transform.c:1265. clone_file makes sure that from doesn't exist when it is successful (either through rename or explicit unlink)
In all other uses of clone_file, it seems we would want to leave the from file untouched when clone_file fails, and only when we fail to clone the temporary file should we also unlink it.
lutter
added a commit
to lutter/augeas
that referenced
this issue
Sep 11, 2017
When the file we are trying to save to is not writable, we left the
temporary file we wriote to behind. Now, we make sure we remove it.
Fixeshercules-team#479
When the file we are trying to save to is not writable, we left the
temporary file we wriote to behind. Now, we make sure we remove it.
Fixeshercules-team#479
When an Augeas save is done and the destination file is not writable, the temporary file that Augeas uses is left behind and not cleaned up.
If run from a regularly executing job it can lead to accumulation of a great many temporary files.
The error returned in Augeas is "rename_augtemp" and I believe that the place to fix it would be in transform.c:clone_file but it isn't quite clear to me what the proper implementation of fix would be.
The text was updated successfully, but these errors were encountered: