[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-xnee] [bugs #8324] --retype-file option for cnee does not set mode
From: |
Joseph Miele |
Subject: |
[Bug-xnee] [bugs #8324] --retype-file option for cnee does not set mode |
Date: |
Sat, 27 Mar 2004 03:07:14 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 |
This mail is an automated notification from the bugs tracker
of the project: Xnee.
/**************************************************************************/
[bugs #8324] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=8324>
Project: Xnee
Submitted by: Joseph Miele
On: Sat 03/27/04 at 08:07
Category: cnee
Severity: 5 - Average
Item Group: Error report
Resolution: None
Assigned to: None
Status: Open
Summary: --retype-file option for cnee does not set mode
Original Submission: Problem: Option "--retype-file" fails to set the mode,
causing the option to fail.
Version affected: CVS
Steps to reproduce the bug:
1. Create text file /tmp/test.xnee. The contents of the file do not matter.
2. Enter the following command:
cnee --verbose --retype-file /tmp/test.xnee
One of the lines of the verbose output will be: "No mode specified... leaving".
Cause: Missing call to xnee_set_retyper in file parse.c (directory cnee/src)
Here is the corrected code segment for parse.c:
else if(xnee_check(argv[i], "--retype-file", "-rtf" ))
{
xnee_set_retyper(xd); /* this is the fix */
if (++i >= argc)
{
xnee_usage(stderr);
xnee_close_down(xd);
exit(XNEE_WRONG_PARAMS);
}
if ( xnee_set_rt_name (xd, argv[i]) != XNEE_OK)
{
xnee_print_error ("Unable to open retype filen");
xnee_verbose ((xd, "Could not open retype filen"));
xnee_verbose ((xd, "... leavingn"));
xnee_close_down(xd);
exit(XNEE_WRONG_PARAMS);
}
continue;
}
Notice the new line designated as the fix. Adding this line solved the problem
for me. Running cnee as indicated in step 2 works correctly with this change in
place.
Please review this code change. If you find the fix acceptable, please update
CVS.
Thank you for your time.
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=8324>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Bug-xnee] [bugs #8324] --retype-file option for cnee does not set mode,
Joseph Miele <=