Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153755414
D42239.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
899 B
Referenced Files
None
Subscribers
None
D42239.id.diff
View Options
diff --git a/usr.sbin/bsdinstall/partedit/partedit.c b/usr.sbin/bsdinstall/partedit/partedit.c
--- a/usr.sbin/bsdinstall/partedit/partedit.c
+++ b/usr.sbin/bsdinstall/partedit/partedit.c
@@ -345,6 +345,7 @@
const char **minilabel;
const char *fstab_path;
FILE *fstab;
+ char *command;
struct bsddialog_conf conf;
nitems = 1; /* Partition table changes */
@@ -387,10 +388,11 @@
bsddialog_mixedgauge(&conf,
"Initializing file systems. Please wait.", 0, 0,
i * 100 / nitems, nitems, minilabel, miniperc);
- sprintf(message, "(echo %s; %s) >>%s 2>>%s",
+ asprintf(&command, "(echo %s; %s) >>%s 2>>%s",
md->newfs, md->newfs, getenv("BSDINSTALL_LOG"),
getenv("BSDINSTALL_LOG"));
- error = system(message);
+ error = system(command);
+ free(command);
miniperc[i] = (error == 0) ?
BSDDIALOG_MG_COMPLETED : BSDDIALOG_MG_FAILED;
i++;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 24, 11:21 AM (6 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32074568
Default Alt Text
D42239.id.diff (899 B)
Attached To
Mode
D42239: bsdinstall partedit: Use asprintf to build wrapper command for newfs
Attached
Detach File
Event Timeline
Log In to Comment