bugGNU Wget - Bugs: bug #20747, Wget returns exit code 256 instead...

 
 

bug #20747: Wget returns exit code 256 instead of 0 if --spider is given and the URL exists

Submitter:  Mauro Tortonesi <mtortonesi>
Submitted:  Fri 10 Aug 2007 01:47:43 PM UTC
   
 
Category:  Program Logic Severity:  4 - Important
Priority:  5 - Normal Status:  Fixed In Repository
Privacy:  Public Assigned to:  micahcowan
Originator Name:  Open/Closed:  Closed
Release:  trunk Operating System:  None
Reproducibility:  Every Time Fixed Release:  1.11
Planned Release:  1.11 Regression:  None
Work Required:  0 - Hours Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 24 Aug 2007 09:13:40 AM UTC, comment #1: 

processes can't return exit codes greater than 255. I get an exit code of 1. Probably you were looking at the raw return value from a waitpid() or similar?

Micah Cowan <micahcowan>
Fri 10 Aug 2007 01:47:43 PM UTC, original submission:  

Wget returns exit code 256 if --spider is given and the given URL exists. This behavior is incorrect, and Wget should return 0 instead.

The problem is only in the trunk. Wget 1.10.2 correctly returns 0 in this case.

Mauro Tortonesi <mtortonesi>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by micahcowan (Posted a comment)
  • -email is unavailable- added by mtortonesi (Submitted the item)
  •  

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-08-30 micahcowan StatusAwaiting Approval Fixed In Repository
        Open/ClosedOpen Closed
        Fixed ReleaseNone 1.11
    2007-08-24 micahcowan StatusIn Progress Awaiting Approval
        Assigned tomtortonesi micahcowan

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code