Bug 10951

Summary: error: 'execstat' undeclared (first use in this function)
Product: Busybox Reporter: larissanadja
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description larissanadja 2018-04-13 19:54:34 UTC
Use of undeclared variable.

When the OLDER_VERSION_OF_X macro is enabled, the code bellow is compiled. However, there is no declaration of 'execstat' until later in the code.

debianutils/start_stop_daemon.c:187:19: error: ‘execstat’ undeclared (first use in this function)
  if (st.st_dev == execstat.st_dev
       ^
Comment 1 Denys Vlasenko 2018-04-13 23:24:23 UTC
fixed in git