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 606398 Details for
Bug 847102
source command fails with single-line if-statement
[?]
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]
Alternate patch for dosource()
tcsh-6.17.00-history-file-locking2.patch (text/plain), 1.79 KB, created by
Bob Arendt
on 2012-08-22 22:31:12 UTC
(
hide
)
Description:
Alternate patch for dosource()
Filename:
MIME Type:
Creator:
Bob Arendt
Created:
2012-08-22 22:31:12 UTC
Size:
1.79 KB
patch
obsolete
>diff -Bburp tcsh-6.17.00_orig/sh.c tcsh-6.17.00/sh.c >--- tcsh-6.17.00_orig/sh.c 2012-08-22 09:35:13.815182201 -0700 >+++ tcsh-6.17.00/sh.c 2012-08-22 14:30:28.860521696 -0700 >@@ -2062,7 +2062,11 @@ process(int catch) > > /*ARGSUSED*/ > int >-dosource(Char **t, struct command *c, int flg) >+dosource(Char **t, struct command *c) >+{ return dosource_lck(t, c, 0); } >+ >+int >+dosource_lck(Char **t, struct command *c, int flg) > { > Char *f; > char *file; >diff -Bburp tcsh-6.17.00_orig/sh.decls.h tcsh-6.17.00/sh.decls.h >--- tcsh-6.17.00_orig/sh.decls.h 2012-08-22 09:35:13.815182201 -0700 >+++ tcsh-6.17.00/sh.decls.h 2012-08-22 14:27:00.823837837 -0700 >@@ -37,7 +37,8 @@ > * sh.c > */ > extern Char *gethdir (const Char *); >-extern int dosource (Char **, struct command *, int); >+extern int dosource (Char **, struct command *); >+extern int dosource_lck (Char **, struct command *, int); > extern void exitstat (void); > extern void goodbye (Char **, struct command *); > extern void importpath (Char *); >diff -Bburp tcsh-6.17.00_orig/sh.dir.c tcsh-6.17.00/sh.dir.c >--- tcsh-6.17.00_orig/sh.dir.c 2012-08-22 09:35:13.816182194 -0700 >+++ tcsh-6.17.00/sh.dir.c 2012-08-22 14:27:00.824837830 -0700 >@@ -1336,7 +1336,7 @@ loaddirs(Char *fname) > loaddirs_cmd[1] = fname; > else > loaddirs_cmd[1] = STRtildotdirs; >- dosource(loaddirs_cmd, NULL, 0); >+ dosource_lck(loaddirs_cmd, NULL, 0); > cleanup_until(&bequiet); > } > >diff -Bburp tcsh-6.17.00_orig/sh.hist.c tcsh-6.17.00/sh.hist.c >--- tcsh-6.17.00_orig/sh.hist.c 2012-08-22 09:35:13.818182180 -0700 >+++ tcsh-6.17.00/sh.hist.c 2012-08-22 14:27:00.825837823 -0700 >@@ -460,5 +460,5 @@ loadhist(Char *fname, int flg) > else > loadhist_cmd[2] = STRtildothist; > >- return dosource(loadhist_cmd, NULL, flg); >+ return dosource_lck(loadhist_cmd, NULL, flg); > }
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 847102
:
606312
| 606398