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 153011 Details for
Bug 237120
updatedb accesses excluded filesystems (risk of hang against broken NFS)
[?]
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]
Patch to remove realpath() calls from updatedb
mlocate-updatedb-avoid-realpath.patch (text/plain), 995 bytes, created by
Bob Gautier
on 2007-04-19 15:11:36 UTC
(
hide
)
Description:
Patch to remove realpath() calls from updatedb
Filename:
MIME Type:
Creator:
Bob Gautier
Created:
2007-04-19 15:11:36 UTC
Size:
995 bytes
patch
obsolete
>--- mlocate-0.15/src/updatedb.c.avoid-realpath 2006-11-16 01:52:38.000000000 +0000 >+++ mlocate-0.15/src/updatedb.c 2007-04-19 15:14:34.715695000 +0100 >@@ -315,18 +315,13 @@ > > /* Return 1 if PATH_ is a mount point of an excluded filesystem */ > static _Bool >-filesystem_is_excluded (const char *path_) >+filesystem_is_excluded (const char *path) > { > struct obstack obstack; >- char pbuf[PATH_MAX]; >- const char *path; > FILE *f; > struct mntent *me; > _Bool res; > >- path = realpath (path_, pbuf); >- if (path == NULL) >- path = path_; > res = 0; > f = setmntent (MOUNT_TABLE_PATH, "r"); > if (f == NULL) >@@ -343,12 +338,7 @@ > if (bsearch (type, conf_prunefs, conf_prunefs_len, > sizeof (*conf_prunefs), cmp_string_pointer) != NULL) > { >- char dbuf[PATH_MAX], *dir; >- >- dir = realpath (me->mnt_dir, dbuf); >- if (dir == NULL) >- dir = me->mnt_dir; >- if (strcmp (path, dir) == 0) >+ if (strcmp (path, me->mnt_dir) == 0) > { > res = 1; > goto err_f;
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 237120
: 153011 |
153211