Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1639725 Details for
Bug 1770304
ext2 filesystem supermin assembles doesn't write symlinks correctly
Home
New
Search
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.rh90 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]
0001-ext2-Build-symbolic-links-correctly-RHBZ-1770304.patch
0001-ext2-Build-symbolic-links-correctly-RHBZ-1770304.patch (text/plain), 1.39 KB, created by
Richard W.M. Jones
on 2019-11-26 09:02:29 UTC
(
hide
)
Description:
0001-ext2-Build-symbolic-links-correctly-RHBZ-1770304.patch
Filename:
MIME Type:
Creator:
Richard W.M. Jones
Created:
2019-11-26 09:02:29 UTC
Size:
1.39 KB
patch
obsolete
>From 5da8e801165bae22e54dca707c6ebd8a16ec91ed Mon Sep 17 00:00:00 2001 >From: "Richard W.M. Jones" <rjones@redhat.com> >Date: Tue, 26 Nov 2019 09:01:21 +0000 >Subject: [PATCH] ext2: Build symbolic links correctly (RHBZ#1770304). > >--- > src/ext2fs-c.c | 10 +++------- > 1 file changed, 3 insertions(+), 7 deletions(-) > >diff --git a/src/ext2fs-c.c b/src/ext2fs-c.c >index e8ab972..41bb346 100644 >--- a/src/ext2fs-c.c >+++ b/src/ext2fs-c.c >@@ -782,12 +782,8 @@ ext2_copy_file (struct ext2_data *data, const char *src, const char *dest) > } > /* Create a symlink. */ > else if (S_ISLNK (statbuf.st_mode)) { >- ext2_ino_t ino; >- ext2_empty_inode (data->fs, dir_ino, dirname, basename, >- statbuf.st_mode, statbuf.st_uid, statbuf.st_gid, >- statbuf.st_ctime, statbuf.st_atime, statbuf.st_mtime, >- 0, 0, EXT2_FT_SYMLINK, &ino); >- >+ const char *name = strrchr (dest, '/'); >+ if (name) name++; else name = dest; > char *buf = malloc (statbuf.st_size+1); > if (buf == NULL) > caml_raise_out_of_memory (); >@@ -797,7 +793,7 @@ ext2_copy_file (struct ext2_data *data, const char *src, const char *dest) > if (r > statbuf.st_size) > r = statbuf.st_size; > buf[r] = '\0'; >- ext2fs_symlink (data->fs, dir_ino, ino, dest, buf); >+ ext2fs_symlink (data->fs, dir_ino, 0, name, buf); > free (buf); > } > /* Create directory. */ >-- >2.23.0 >
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 1770304
: 1639725