Project

General

Profile

Bug #4788

ifdh cp eats failure code from unerlying copy commands

Added by Marc Mengel almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
10/11/2013
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:
Duration:

Description

This came in as INC000000396814, and then RITM0075160...

Basically
ifdh cp nosuchfile dest
returns a successful error code.

History

#1 Updated by Marc Mengel almost 7 years ago

Debugged, found that we were exiting(res) where
res = system(copy_command); this is wrong, we should
be exiting with a value which is WEXITSTATUS,
otherwise the actualy exit status of the copy_command is discarded.

First stab at fix is in 1c0814f

still need a proper test.

#2 Updated by Marc Mengel almost 7 years ago

Added test case: e16168e

#3 Updated by Marc Mengel almost 7 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 30 to 100


Also available in: Atom PDF