New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
abrt-console-notification.sh error if noclobber is set: abrt/lastnotification.<TMP_SUFFIX>: cannot overwrite existing file #1371
Comments
D'oh, did it print out the error message to your terminal? (I tried so hard to mute all errors). The command should create a file holding the date of the last notification. The script tries to robust, so it first creates a temporary file and if it succeeds, it adds the content. The failing command can be replaced with The redirects should be swapped to avoid errors being printed out - i.e. first |
Note for myself - what is noclobber: |
If the goal is to prevent any kind of error leakage to the user, then stderr redirection must come first. #1371
When using bash and when noclobber is set on the parent shell, trying to write out the current time will fail every time. We can instead append to the file and read the last line instead, in case moving fails as well. Fixes #1371
If the goal is to prevent any kind of error leakage to the user, then stderr redirection must come first. #1371
When using bash and when noclobber is set on the parent shell, trying to write out the current time will fail every time. We can instead append to the file and read the last line instead, in case moving fails as well. Fixes #1371
This in abrt/src/cli/abrt-console-notification.sh:
fails if noclobber has been set. If $TMPPATH points to a file to be replaced, it should be removed explicitly first.
The text was updated successfully, but these errors were encountered: