Print

Print


Thanks for looking into this. That simplifies a lot of decision making. As for the file location, in xrootd we have what's called an "adminpath" that a site gets to specify. All special files are created starting at that location. You can find out what the admin path is via envar XRDADMINPATH. So, I would suggest creating a directory ".tempca" rooted there (capitalization of your choice). You should set appropriate privs for that directory. Then it's all yours to do with as you like. While mkstmp works, I've heard that it too can mess up. There are any number of ways to get a unique file name with little effort. The one I use most often is start-up time (decimal or hex), period, and a monotonically increasing number (a static starting at 0 will do). Since it's guaranteed to be your directory you can't conflict with anything else.

Also, don't forget to fix the two identical messages for two very different errors.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/pull/1431#issuecomment-813876355", "url": "https://github.com/xrootd/xrootd/pull/1431#issuecomment-813876355", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1