Permalink
Browse files

Use a different working dir when checking for updates on this tray,

to avoid collisions with other instances of "freebsd-update"
  • Loading branch information...
1 parent b246b06 commit 1db1c9b454bd8acabfd700a01ff6ccf81d2b7b0c @kmoore134 kmoore134 committed Sep 1, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src-sh/pc-fbsdupdatecheck/main.c
@@ -9,7 +9,8 @@
int main()
{
system("touch /tmp/.fbsdup-lock");
- system("cat /usr/sbin/freebsd-update | sed 's|! -t 0|-z '1'|g' | /bin/sh -s 'fetch'");
+ system("mkdir /var/db/freebsd-update-check 2>/dev/null");
+ system("cat /usr/sbin/freebsd-update | sed 's|! -t 0|-z '1'|g' | /bin/sh -s 'fetch' '-d' '/var/db/freebsd-update-check'");
system("rm /tmp/.fbsdup-lock");
return 0;
}

0 comments on commit 1db1c9b

Please sign in to comment.