Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 203639 Details for
Bug 284350
x11-wm/scrotwm (new package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch #3
03_all_check-before-preloading-libswmhack.diff (text/plain), 1.13 KB, created by
Massimo Gengarelli
on 2009-09-09 20:45:25 UTC
(
hide
)
Description:
Patch #3
Filename:
MIME Type:
Creator:
Massimo Gengarelli
Created:
2009-09-09 20:45:25 UTC
Size:
1.13 KB
patch
obsolete
>Scrotwm LD_PRELOADs a small library when spawning an external application; if >the library is not present, however, every time a command is launched from a >terminal spawned by scrotwm a warning message is shown. > >This patch checks the library exists before LD_PRELOADing it, so even if the >library is not installed (which is the case for the Debian package) the user >is not annoyed by spurious warning messages. >Index: scrotwm/scrotwm.c >=================================================================== >--- scrotwm.orig/scrotwm.c 2009-05-31 19:36:32.000000000 +0200 >+++ scrotwm/scrotwm.c 2009-05-31 19:36:46.000000000 +0200 >@@ -1086,6 +1086,7 @@ > { > char *ret; > int si; >+ struct stat sb; > > DNPRINTF(SWM_D_MISC, "spawn: %s\n", args->argv[0]); > /* >@@ -1096,7 +1097,10 @@ > if (fork() == 0) { > if (display) > close(ConnectionNumber(display)); >- setenv("LD_PRELOAD", SWM_LIB, 1); >+ if (stat(SWM_LIB, &sb) != -1) { >+ if (S_ISREG(sb.st_mode)) >+ setenv("LD_PRELOAD", SWM_LIB, 1); >+ } > if (asprintf(&ret, "%d", r->ws->idx)) { > setenv("_SWM_WS", ret, 1); > free(ret);
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 284350
:
203634
|
203636
|
203637
|
203639
|
203640
|
203947
|
203948
|
203950
|
203952
|
204100
|
204102
|
204103
|
204105
|
204107
|
206282
|
206283
|
206319
|
206408
|
206410
|
206518
|
206520
|
206731
|
206967
|
206969
|
206970
|
206974
|
207019
|
210444
|
224619
|
224639
|
224641
|
224651
|
224655
|
253387