Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 155700 Details for
Bug 234249
rgmanager should ignore backup files in /usr/share/cluster/
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
fixed rhel4 patch
rgmanager-234249-rhel4.patch (text/plain), 1.93 KB, created by
Lon Hohberger
on 2007-05-30 14:58:13 UTC
(
hide
)
Description:
fixed rhel4 patch
Filename:
MIME Type:
Creator:
Lon Hohberger
Created:
2007-05-30 14:58:13 UTC
Size:
1.93 KB
patch
obsolete
>Index: resrules.c >=================================================================== >RCS file: /cvs/cluster/cluster/rgmanager/src/daemons/resrules.c,v >retrieving revision 1.9.2.7 >diff -u -r1.9.2.7 resrules.c >--- resrules.c 20 Mar 2007 19:40:06 -0000 1.9.2.7 >+++ resrules.c 30 May 2007 14:57:38 -0000 >@@ -307,7 +307,7 @@ > for (x = 0; acts[x].ra_name; x++) { > if (!strcmp(acts[x].ra_name, name) && > (depth == acts[x].ra_depth || depth == -1)) { >- printf("Replacing action '%s' depth %d: ", >+ fprintf(stderr, "Replacing action '%s' depth %d: ", > name, acts[x].ra_depth); > if (timeout >= 0) { > printf("timeout: %d->%d ", >@@ -1093,7 +1093,7 @@ > { > DIR *dir; > struct dirent *de; >- char *fn;//, *dot; >+ char *fn, *dot; > char path[2048]; > > dir = opendir(rpath); >@@ -1107,14 +1107,46 @@ > if (!fn) > continue; > >+ /* Ignore files with common backup extension */ > if ((fn != NULL) && (strlen(fn) > 0) && > (fn[strlen(fn)-1] == '~')) > continue; > >+ /* Ignore hidden files */ >+ if (*fn == '.') >+ continue; >+ >+ dot = strrchr(fn, '.'); >+ if (dot) { >+ /* Ignore RPM installed save files, patches, >+ diffs, etc. */ >+ if (!strcasecmp(dot, ".rpmorig") || >+ !strcasecmp(dot, ".rpmsave") || >+ !strcasecmp(dot, ".rpmnew") || >+ !strcasecmp(dot, ".old") || >+ !strcasecmp(dot, ".new") || >+ !strcasecmp(dot, ".orig") || >+ !strcasecmp(dot, ".patch") || >+ !strcasecmp(dot, ".diff") ){ >+ fprintf(stderr, "Warning: " >+ "Ignoring %s/%s: Bad extension %s\n", >+ rpath, de->d_name, dot); >+ } >+ } >+ > snprintf(path, sizeof(path), "%s/%s", > rpath, de->d_name); > >- load_resource_rulefile(path, rules); >+ if (stat(path, &st_buf) < 0) >+ continue; >+ >+ if (S_ISDIR(st_buf.st_mode)) >+ continue; >+ >+ if (st_buf.st_mode & (S_IXUSR|S_IXOTH|S_IXGRP)) { >+ fprintf(stderr, "Loading %s\n", path); >+ load_resource_rulefile(path, rules); >+ } > } > xmlCleanupParser(); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 234249
:
155696
|
155698
|
155699
|
155700
|
155747
|
155748