Ignore:
Timestamp:
09/01/13 11:41:57 (11 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
83428f0
Parents:
b246b06
Message:

Use a different working dir when checking for updates on this tray,
to avoid collisions with other instances of "freebsd-update"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-fbsdupdatecheck/main.c

    r53791e4 r1db1c9b  
    1010{ 
    1111        system("touch /tmp/.fbsdup-lock"); 
    12         system("cat /usr/sbin/freebsd-update | sed 's|! -t 0|-z '1'|g' | /bin/sh -s 'fetch'"); 
     12        system("mkdir /var/db/freebsd-update-check 2>/dev/null"); 
     13        system("cat /usr/sbin/freebsd-update | sed 's|! -t 0|-z '1'|g' | /bin/sh -s 'fetch' '-d' '/var/db/freebsd-update-check'"); 
    1314        system("rm /tmp/.fbsdup-lock"); 
    1415        return 0; 
Note: See TracChangeset for help on using the changeset viewer.