Bug 78480 - less than optimal source code
less than optimal source code
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: xcdroast (Show other bugs)
8.0
All Linux
low Severity low
: ---
: ---
Assigned To: Harald Hoyer
Jay Turner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-11-24 05:47 EST by d.binderman
Modified: 2015-01-07 19:01 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-01-09 07:50:25 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description d.binderman 2002-11-24 05:47:07 EST
Description of Problem:

Hello there,

I just tried to compile package xcdroast-0.98a9-18 from Redhat 8.0.

Here are some of the compiler messages.

init.c:280: warning: `return' with no value, in function returning non-void

Here is a patch which fixes the messages.

*** ./init.c.old	2002-11-06 14:33:04.000000000 +0000
--- ./init.c	2002-11-06 14:36:48.000000000 +0000
***************
*** 277,285 ****
  	/* file does exist? */
  	if (stat(file,&buf) == 0) {
  		if (!(buf.st_mode & S_ISGID)) {
- 			return;
  			g_warning("Installation problem? No set-gid bit on %s\n", file);
  			dodebug(1,"Warning: No set-gid bit on %s\n", file);
  		}
  
  		return buf.st_gid;
--- 277,285 ----
  	/* file does exist? */
  	if (stat(file,&buf) == 0) {
  		if (!(buf.st_mode & S_ISGID)) {
  			g_warning("Installation problem? No set-gid bit on %s\n", file);
  			dodebug(1,"Warning: No set-gid bit on %s\n", file);
+ 			return (gid_t) 0;
  		}
  
  		return buf.st_gid;


Version-Release number of selected component (if applicable):


How Reproducible:


Steps to Reproduce:
1. 
2. 
3. 

Actual Results:


Expected Results:


Additional Information:
Comment 1 Harald Hoyer 2003-01-09 07:50:25 EST
fixed

Note You need to log in before you can comment on or make changes to this bug.