Package: megatools
Version: 1.9.97-1
Severity: important
 
In some cases, megaput returns a zero (EXIT_SUCCESS) exit status
even though the upload failed.
 
This could lead to data loss if users write scripts which
assume that the return value is meaningful
(e.g. "megaput myfile && rm -f myfile")
 
Example:
 
$ megaput Important_data.zip 
ERROR: Upload failed for 'Important_data.zip': Data upload failed: CURL error: 
Failure when receiving data from the peer
$ echo $?
0
 
megaput (and the other tools) should always return a non-zero
exit status if an error occured.

Reply via email to