--- infopipe.c Sun Dec 10 11:44:30 2000 +++ infopipe.c Sat Feb 10 20:25:13 2001 @@ -66,6 +66,15 @@ */ void init_plugin(void) { + /* added my Mike Cherry + using strcat to form the chown cmd needed + */ + + char cmd_chown[512] = "chown "; + strcat(cmd_chown, FIFO_USER); + strcat(cmd_chown, PADDING); + strcat(cmd_chown, FIFO_FILE); + /* See if the file exists... */ if(access(FIFO_FILE,F_OK)==0) { /* @@ -85,6 +94,11 @@ if(mkfifo(FIFO_FILE,0600) != 0) { fprintf(stderr,"Unable to create a pipe..."); xmms_remote_quit(infopipe_gp.xmms_session); + } else { + /* added by Mike Cherry + run the chown command + */ + system(cmd_chown); } /* Create the thread that handles pipe stuff. */ --- infopipe.h Sun Dec 10 11:44:47 2000 +++ infopipe.h Sat Feb 10 20:25:23 2001 @@ -27,4 +27,16 @@ */ #define FIFO_FILE "/tmp/xmms-info" +/* + added by Mike Cherry + put the user to chown the fifo_file to here, + + yeah this is crappy code, but it was a quick + (very quick) solution. + +*/ + +#define FIFO_USER "nobody" +#define PADDING " " + #endif /* INFOPIPE_PLUGIN_INFOPIPE_H */