network.c (78553) | network.c (79304) |
---|---|
1/* 2 * The new sysinstall program. 3 * 4 * This is probably the last attempt in the `sysinstall' line, the next 5 * generation being slated to essentially a complete rewrite. 6 * | 1/* 2 * The new sysinstall program. 3 * 4 * This is probably the last attempt in the `sysinstall' line, the next 5 * generation being slated to essentially a complete rewrite. 6 * |
7 * $FreeBSD: head/usr.sbin/sysinstall/network.c 78553 2001-06-21 15:39:40Z brian $ | 7 * $FreeBSD: head/usr.sbin/sysinstall/network.c 79304 2001-07-05 09:51:09Z kris $ |
8 * 9 * Copyright (c) 1995 10 * Jordan Hubbard. All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without 13 * modification, are permitted provided that the following conditions 14 * are met: 15 * 1. Redistributions of source code must retain the above copyright --- 93 unchanged lines hidden (view full) --- 109 } 110 else 111 SAFE_STRCPY(attach, val); 112 /* 113 * Doing this with vsystem() is actually bogus since we should be storing the pid of slattach 114 * for later killing. It's just too convenient to call vsystem(), however, rather than 115 * constructing a proper argument for exec() so we punt on doing slip right for now. 116 */ | 8 * 9 * Copyright (c) 1995 10 * Jordan Hubbard. All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without 13 * modification, are permitted provided that the following conditions 14 * are met: 15 * 1. Redistributions of source code must retain the above copyright --- 93 unchanged lines hidden (view full) --- 109 } 110 else 111 SAFE_STRCPY(attach, val); 112 /* 113 * Doing this with vsystem() is actually bogus since we should be storing the pid of slattach 114 * for later killing. It's just too convenient to call vsystem(), however, rather than 115 * constructing a proper argument for exec() so we punt on doing slip right for now. 116 */ |
117 if (vsystem(attach)) { | 117 if (vsystem("%s", attach)) { |
118 msgConfirm("slattach returned a bad status! Please verify that\n" 119 "the command is correct and try this operation again."); 120 restorescr(w); 121 return FALSE; 122 } 123 restorescr(w); 124 } 125 --- 230 unchanged lines hidden --- | 118 msgConfirm("slattach returned a bad status! Please verify that\n" 119 "the command is correct and try this operation again."); 120 restorescr(w); 121 return FALSE; 122 } 123 restorescr(w); 124 } 125 --- 230 unchanged lines hidden --- |